Skip to content

Commit

Permalink
fix(ext/node): use ext/io stdio in WriteStream (#23354)
Browse files Browse the repository at this point in the history
This is the same issue as #23044
but in `WriteStream`.

Adding a docusarus test in npm_smoke_tests repo.
  • Loading branch information
littledivy authored and bartlomieju committed Apr 15, 2024
1 parent 80695e6 commit 4e022e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/node/polyfills/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 4e022e8

Please sign in to comment.