From eb930d7ae541cd1053f7fcefc0570a98a8791ce8 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 11 Jul 2022 11:50:40 +0200 Subject: [PATCH] fixup: allow overriding writableHighWaterMark --- lib/internal/streams/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/transform.js b/lib/internal/streams/transform.js index 9ff140c7bf969a..d6e02cdf8fdf09 100644 --- a/lib/internal/streams/transform.js +++ b/lib/internal/streams/transform.js @@ -99,7 +99,7 @@ function Transform(options) { // a "bug" where we check needDrain before calling _write and not after. // Refs: https://github.com/nodejs/node/pull/32887 // Refs: https://github.com/nodejs/node/pull/35941 - writableHighWaterMark: 0 + writableHighWaterMark: options.writableHighWaterMark || 0 }; }