mirror of https://github.com/nodejs/node.git
streams2: Set 'readable' flag on Readable streams
parent
4b4ff2dff1
commit
53fa66d9f7
|
@ -99,6 +99,10 @@ function Readable(options) {
|
|||
return new Readable(options);
|
||||
|
||||
this._readableState = new ReadableState(options, this);
|
||||
|
||||
// legacy
|
||||
this.readable = true;
|
||||
|
||||
Stream.apply(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue