Skip to content

Commit

Permalink
fix(internal): fix readSync method (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar authored Sep 27, 2024
1 parent 2a32a37 commit 2d8aa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runtime/read_sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { readSync: readSyncNode } = process
*/
export function readSync(data: Uint8Array): number {
if (Deno) {
return Deno.stdout.readSync(data);
return Deno.stdin.readSync(data);
} else if (readSyncNode) {
const buffer = Buffer.alloc(data.byteLength);
const bytesRead = readSyncNode(
Expand Down

0 comments on commit 2d8aa19

Please sign in to comment.