streams2: Set 'readable' flag on Readable streams

pull/24504/head
isaacs 2012-11-27 18:21:05 -08:00
parent 4b4ff2dff1
commit 53fa66d9f7
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ function Readable(options) {
return new Readable(options);
this._readableState = new ReadableState(options, this);
// legacy
this.readable = true;
Stream.apply(this);
}