1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

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.
This commit is contained in:
Divy Srivastava 2024-04-13 21:25:00 +05:30 committed by GitHub
parent 402d59eea9
commit 1fadb940f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({