diff options
author | isaacs <i@izs.me> | 2012-10-07 13:12:21 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-12-13 17:00:26 -0800 |
commit | 8acb416ad0532d249a0342f39103dd09fbbeeb2e (patch) | |
tree | 3261b58d2ca0338952e41b6d97482e08370ced9d /lib/_stream_passthrough.js | |
parent | 06e321d0f9692af1b6c6909cdfc49fd1b197129c (diff) | |
download | android-node-v8-8acb416ad0532d249a0342f39103dd09fbbeeb2e.tar.gz android-node-v8-8acb416ad0532d249a0342f39103dd09fbbeeb2e.tar.bz2 android-node-v8-8acb416ad0532d249a0342f39103dd09fbbeeb2e.zip |
streams2: Handle immediate synthetic transforms properly
Diffstat (limited to 'lib/_stream_passthrough.js')
-rw-r--r-- | lib/_stream_passthrough.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_stream_passthrough.js b/lib/_stream_passthrough.js index dd6390fc6e..5acd27b260 100644 --- a/lib/_stream_passthrough.js +++ b/lib/_stream_passthrough.js @@ -34,6 +34,5 @@ function PassThrough(options) { } PassThrough.prototype._transform = function(chunk, output, cb) { - output(chunk); - cb(); + cb(null, chunk); }; |