Skip to content

Commit ccdbedd

Browse files
committed
less breakage
1 parent 2993ff2 commit ccdbedd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/stream.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ Stream.Duplex = require('_stream_duplex');
3333
Stream.Transform = require('_stream_transform');
3434
Stream.PassThrough = require('_stream_passthrough');
3535
Stream.pump = require('_stream_pump');
36-
Stream.prototype.pipe = Stream.pump;
37-
36+
Stream.prototype.pipe = function (dest) {
37+
return Stream.pump(this, dest)
38+
};
3839
// Backwards-compat with node 0.4.x
3940
Stream.Stream = Stream;
4041

0 commit comments

Comments
 (0)