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:
5856823
)
streams2: Export Readable/Writable State classes
author
isaacs
<i@izs.me>
Tue, 13 Nov 2012 07:30:10 +0000
(23:30 -0800)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 01:00:30 +0000
(17:00 -0800)
lib/_stream_readable.js
patch
|
blob
|
history
lib/_stream_writable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
4e84eb5
..
c228e52
100644
(file)
--- a/
lib/_stream_readable.js
+++ b/
lib/_stream_readable.js
@@
-20,6
+20,7
@@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
module.exports = Readable;
+Readable.ReadableState = ReadableState;
var Stream = require('stream');
var util = require('util');
diff --git
a/lib/_stream_writable.js
b/lib/_stream_writable.js
index
1f6f511
..
744ec41
100644
(file)
--- a/
lib/_stream_writable.js
+++ b/
lib/_stream_writable.js
@@
-23,7
+23,8
@@
// Implement an async ._write(chunk, cb), and it'll handle all
// the drain event emission and buffering.
-module.exports = Writable
+module.exports = Writable;
+Writable.WritableState = WritableState;
var util = require('util');
var Stream = require('stream');