streams2: Set 'readable' flag on Readable streams
authorisaacs <i@izs.me>
Wed, 28 Nov 2012 02:21:05 +0000 (18:21 -0800)
committerisaacs <i@izs.me>
Fri, 14 Dec 2012 01:00:33 +0000 (17:00 -0800)
lib/_stream_readable.js

index 9c24299..20ce5ed 100644 (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);
 }