Skip to content

Commit

Permalink
Set writable/readable objectMode explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhahn committed Dec 10, 2014
1 parent 112139d commit badb47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stream-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function List(source, options) {
s.done = true;
});

stream.Transform.call(this, { objectMode:true });
stream.Transform.call(this, {});
this._writableState.objectMode = false;
this._readableState.objectMode = true;
}

List.prototype._transform = function(obj, encoding, callback) {
Expand Down

0 comments on commit badb47c

Please sign in to comment.