projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4ff2d
)
streams2: Set 'readable' flag on Readable streams
author
isaacs
<i@izs.me>
Wed, 28 Nov 2012 02:21:05 +0000
(18:21 -0800)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 01:00:33 +0000
(17:00 -0800)
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
9c24299
..
20ce5ed
100644
(file)
--- 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);
}