diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-04-13 21:25:00 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 21:25:00 +0530 |
commit | 1fadb940f41f4f9f78e616c90008a31a44dc28bc (patch) | |
tree | 199eb251f148d14655cffb8d2e16a46b44a6b727 /ext/node/polyfills/tty.js | |
parent | 402d59eea99481af30c2aa0aff19d90a4ce9ced3 (diff) |
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.
Diffstat (limited to 'ext/node/polyfills/tty.js')
-rw-r--r-- | ext/node/polyfills/tty.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/tty.js b/ext/node/polyfills/tty.js index 705644d7c..c44f7e946 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({ |