aboutsummaryrefslogtreecommitdiff
path: root/lib/_stream_writable.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_stream_writable.js')
-rw-r--r--lib/_stream_writable.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js
index 41114f41bb..c6d895ff5d 100644
--- a/lib/_stream_writable.js
+++ b/lib/_stream_writable.js
@@ -565,7 +565,11 @@ function clearBuffer(stream, state) {
}
Writable.prototype._write = function(chunk, encoding, cb) {
- cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));
+ if (this._writev) {
+ this._writev([{ chunk, encoding }], cb);
+ } else {
+ cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));
+ }
};
Writable.prototype._writev = null;