From b71c5b2ddbd4218930f410cb2cb42fbbc53c8f91 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Wed, 21 Jun 2017 11:01:28 +0200 Subject: [PATCH] READABLE_STREAM=disable works also with writable.js --- writable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/writable.js b/writable.js index 634ddcbe18..3211a6f80d 100644 --- a/writable.js +++ b/writable.js @@ -3,6 +3,6 @@ var Writable = require("./lib/_stream_writable.js") if (process.env.READABLE_STREAM === 'disable') { module.exports = Stream && Stream.Writable || Writable +} else { + module.exports = Writable } - -module.exports = Writable