We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2993ff2 commit ccdbeddCopy full SHA for ccdbedd
lib/stream.js
@@ -33,8 +33,9 @@ Stream.Duplex = require('_stream_duplex');
33
Stream.Transform = require('_stream_transform');
34
Stream.PassThrough = require('_stream_passthrough');
35
Stream.pump = require('_stream_pump');
36
-Stream.prototype.pipe = Stream.pump;
37
-
+Stream.prototype.pipe = function (dest) {
+ return Stream.pump(this, dest)
38
+};
39
// Backwards-compat with node 0.4.x
40
Stream.Stream = Stream;
41
0 commit comments