diff options
Diffstat (limited to 'io/bufio_test.ts')
-rw-r--r-- | io/bufio_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/bufio_test.ts b/io/bufio_test.ts index 84b6f9142..6433c7a5a 100644 --- a/io/bufio_test.ts +++ b/io/bufio_test.ts @@ -35,7 +35,7 @@ async function readBytes(buf: BufReader): Promise<string> { let nb = 0; while (true) { let c = await buf.readByte(); - if (c < 0) { + if (c === EOF) { break; // EOF } b[nb] = c; |