stream: make Readable.wrap support objectMode
authorDaniel Moore <polaris@northhorizon.net>
Mon, 29 Apr 2013 13:25:08 +0000 (09:25 -0400)
committerisaacs <i@izs.me>
Wed, 8 May 2013 18:59:28 +0000 (11:59 -0700)
commit1ad93a65844e6bf5c87fb4c5ca46f9c7fb2ebc9f
treeed5c19ade6144e8e69b5116789f52a191a711550
parentcf87ee67eed4409bdd14a4d75b5d7053328cce91
stream: make Readable.wrap support objectMode

Added a check to see if the stream is in objectMode before deciding
whether to include or exclude data from an old-style wrapped stream.
lib/_stream_readable.js
test/simple/test-stream2-readable-wrap.js