From 678313b17677e012ba9a07aeca58af1aafbf4e8c Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 28 Apr 2020 17:40:43 +0100 Subject: BREAKING: Remove Deno.EOF, use null instead (#4953) --- std/io/iotest.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/io/iotest.ts') diff --git a/std/io/iotest.ts b/std/io/iotest.ts index e2cf315aa..a309fb5e1 100644 --- a/std/io/iotest.ts +++ b/std/io/iotest.ts @@ -10,7 +10,7 @@ type Reader = Deno.Reader; export class OneByteReader implements Reader { constructor(readonly r: Reader) {} - read(p: Uint8Array): Promise { + read(p: Uint8Array): Promise { if (p.byteLength === 0) { return Promise.resolve(0); } @@ -27,7 +27,7 @@ export class OneByteReader implements Reader { export class HalfReader implements Reader { constructor(readonly r: Reader) {} - read(p: Uint8Array): Promise { + read(p: Uint8Array): Promise { if (!(p instanceof Uint8Array)) { throw Error("expected Uint8Array"); } @@ -43,7 +43,7 @@ export class TimeoutReader implements Reader { count = 0; constructor(readonly r: Reader) {} - read(p: Uint8Array): Promise { + read(p: Uint8Array): Promise { this.count++; if (this.count === 2) { throw new Deno.errors.TimedOut(); -- cgit v1.2.3