From 53fa66d9f79b4ba593f071334d58fda766fa5be3 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 27 Nov 2012 18:21:05 -0800 Subject: [PATCH] streams2: Set 'readable' flag on Readable streams --- lib/_stream_readable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 9c242990d4f..20ce5ed2db3 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -99,6 +99,10 @@ function Readable(options) { return new Readable(options); this._readableState = new ReadableState(options, this); + + // legacy + this.readable = true; + Stream.apply(this); }