diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-06-02 07:36:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 07:36:51 +0200 |
commit | c908088a039b8e1232941850c75471bab162313a (patch) | |
tree | d54c01abc75a4f1bab748622b7b3009587ba916f /ext/node/polyfills/_process/streams.mjs | |
parent | 11791ee2608a402d5067dcdf8bb088cbd6689c18 (diff) |
fix(node): don't close stdio streams (#19256)
Closes https://github.com/denoland/deno/issues/19255
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/node/polyfills/_process/streams.mjs')
-rw-r--r-- | ext/node/polyfills/_process/streams.mjs | 1 |
1 files changed, 1 insertions, 0 deletions
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( |