From 63ac07b32b0a6de8ea6e51d6ae52ea3b35f18935 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 12 Nov 2012 23:30:10 -0800 Subject: [PATCH] streams2: Export Readable/Writable State classes --- lib/_stream_readable.js | 1 + lib/_stream_writable.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 4e84eb57bf..c228e52afb 100644 --- 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 1f6f5112a0..744ec41945 100644 --- 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');