summaryrefslogtreecommitdiff
path: root/lib/_stream_transform.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-09-28 17:48:12 -0300
committerRuben Bridgewater <ruben@bridgewater.de>2017-10-01 20:37:00 -0300
commitdb7d1339c38805bbe5a6dbf2508f7273a0e81bf6 (patch)
treea84edbd736a6b45b1db60d6a090814aaa0fd5495 /lib/_stream_transform.js
parent4536128e7c9218f478354292f30720b39f6f4060 (diff)
downloadandroid-node-v8-db7d1339c38805bbe5a6dbf2508f7273a0e81bf6.tar.gz
android-node-v8-db7d1339c38805bbe5a6dbf2508f7273a0e81bf6.tar.bz2
android-node-v8-db7d1339c38805bbe5a6dbf2508f7273a0e81bf6.zip
stream: migrate to internal/errors
PR-URL: https://github.com/nodejs/node/pull/15665 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r--lib/_stream_transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js
index ba80f5c09c..b8d4a7704a 100644
--- a/lib/_stream_transform.js
+++ b/lib/_stream_transform.js
@@ -157,7 +157,7 @@ Transform.prototype.push = function(chunk, encoding) {
// an error, then that'll put the hurt on the whole operation. If you
// never call cb(), then you'll never get another chunk.
Transform.prototype._transform = function(chunk, encoding, cb) {
- throw new Error('_transform() is not implemented');
+ throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED', '_transform');
};
Transform.prototype._write = function(chunk, encoding, cb) {