stream: make Readable.wrap support empty streams
authorDaniel Moore <polaris@northhorizon.net>
Wed, 1 May 2013 17:46:31 +0000 (13:46 -0400)
committerisaacs <i@izs.me>
Wed, 8 May 2013 18:59:40 +0000 (11:59 -0700)
commit3b6fc600e2270b213450517c1406c26f0935e920
tree9ee5a0ac9246364d80f24f005fed2205c28732b4
parent1ad93a65844e6bf5c87fb4c5ca46f9c7fb2ebc9f
stream: make Readable.wrap support empty streams

This makes Readable.wrap behave properly when the wrapped stream ends
before emitting any data events.
lib/_stream_readable.js
test/simple/test-stream2-readable-wrap-empty.js [new file with mode: 0644]