diff options
Diffstat (limited to 'lib/internal/streams/legacy.js')
-rw-r--r-- | lib/internal/streams/legacy.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/internal/streams/legacy.js b/lib/internal/streams/legacy.js index 9790696bfc..016a50d140 100644 --- a/lib/internal/streams/legacy.js +++ b/lib/internal/streams/legacy.js @@ -1,12 +1,11 @@ 'use strict'; const EE = require('events'); -const util = require('util'); function Stream() { EE.call(this); } -util.inherits(Stream, EE); +Object.setPrototypeOf(Stream.prototype, EE.prototype); Stream.prototype.pipe = function(dest, options) { var source = this; |