From 1fadb940f41f4f9f78e616c90008a31a44dc28bc Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 13 Apr 2024 21:25:00 +0530 Subject: [PATCH] fix(ext/node): use ext/io stdio in WriteStream (#23354) This is the same issue as https://github.com/denoland/deno/pull/23044 but in `WriteStream`. Adding a docusarus test in npm_smoke_tests repo. --- ext/node/polyfills/tty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/node/polyfills/tty.js b/ext/node/polyfills/tty.js index 705644d7c5..c44f7e946c 100644 --- a/ext/node/polyfills/tty.js +++ b/ext/node/polyfills/tty.js @@ -80,7 +80,7 @@ export class WriteStream extends Socket { if (fd > 2) throw new Error("Only fd 0, 1 and 2 are supported."); const tty = new TTY( - fd === 0 ? Deno.stdin : fd === 1 ? Deno.stdout : Deno.stderr, + fd === 0 ? io.stdin : fd === 1 ? io.stdout : io.stderr, ); super({