summaryrefslogtreecommitdiff
path: root/lib/internal/fs/sync_write_stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/fs/sync_write_stream.js')
-rw-r--r--lib/internal/fs/sync_write_stream.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/fs/sync_write_stream.js b/lib/internal/fs/sync_write_stream.js
index fda3b8947d..1e7c6a50a9 100644
--- a/lib/internal/fs/sync_write_stream.js
+++ b/lib/internal/fs/sync_write_stream.js
@@ -16,6 +16,7 @@ function SyncWriteStream(fd, options) {
}
Object.setPrototypeOf(SyncWriteStream.prototype, Writable.prototype);
+Object.setPrototypeOf(SyncWriteStream, Writable);
SyncWriteStream.prototype._write = function(chunk, encoding, cb) {
writeSync(this.fd, chunk, 0, chunk.length);