From c908088a039b8e1232941850c75471bab162313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 2 Jun 2023 07:36:51 +0200 Subject: fix(node): don't close stdio streams (#19256) Closes https://github.com/denoland/deno/issues/19255 --------- Co-authored-by: Yoshiya Hinosawa --- ext/node/polyfills/_process/streams.mjs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/node/polyfills/_process') diff --git a/ext/node/polyfills/_process/streams.mjs b/ext/node/polyfills/_process/streams.mjs index 9096586c7..934d4f967 100644 --- a/ext/node/polyfills/_process/streams.mjs +++ b/ext/node/polyfills/_process/streams.mjs @@ -16,6 +16,7 @@ import * as io from "ext:deno_io/12_io.js"; // https://github.com/nodejs/node/blob/00738314828074243c9a52a228ab4c68b04259ef/lib/internal/bootstrap/switches/is_main_thread.js#L41 export function createWritableStdioStream(writer, name) { const stream = new Writable({ + emitClose: false, write(buf, enc, cb) { if (!writer) { this.destroy( -- cgit v1.2.3