joyent/node — pull request #7758 by substack (2014-06-09 02:58:21+00:00)
Title: handle falsey values in Readable({ objectMode: true }).wrap()

If a streams1 stream is upgraded to streams2 with `Readable().wrap()` in objectMode, the wrapped stream will eat falsey values such as `false`, `0`, and `""`. This is a problem when wrapping a streams1 module like [split](https://npmjs.org/package/split) where empty lines can be significant, but this bug is present on any streams1 stream that emits falsey data in objectMode.

This patch adds a failing test case and a fix.