Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/_stream_readable.js
  2. +1 −1 test/simple/test-stream2-readable-non-empty-end.js
@@ -139,7 +139,7 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) {
var er = chunkInvalid(state, chunk);
if (er) {
stream.emit('error', er);
} else if (util.isNullOrUndefined(chunk)) {
} else if (chunk === null) {
state.reading = false;
if (!state.ended)
onEofChunk(stream, state);
@@ -35,7 +35,7 @@ var n = 0;
test._read = function(size) {
var chunk = chunks[n++];
setTimeout(function() {
test.push(chunk);
test.push(chunk === undefined ? null : chunk);
});
};