diff options
author | Chris Knight <cknight1234@gmail.com> | 2020-06-25 11:40:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 06:40:51 -0400 |
commit | d9896d64ce919a46a6e8c6666c3b87cc9ae79b7b (patch) | |
tree | d91a28318521361d7c559cb5380051df466b7589 /std/io/bufio.ts | |
parent | c98038a03228d527cd90d9f1fc0118a3fe47dce0 (diff) |
refactor: shift copyBytes and tweak deps to reduce dependencies (#6469)
Diffstat (limited to 'std/io/bufio.ts')
-rw-r--r-- | std/io/bufio.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/io/bufio.ts b/std/io/bufio.ts index e4759dcb7..cd2573683 100644 --- a/std/io/bufio.ts +++ b/std/io/bufio.ts @@ -6,14 +6,14 @@ type Reader = Deno.Reader; type Writer = Deno.Writer; type WriterSync = Deno.WriterSync; -import { charCode, copyBytes } from "./util.ts"; +import { copyBytes } from "../bytes/mod.ts"; import { assert } from "../_util/assert.ts"; const DEFAULT_BUF_SIZE = 4096; const MIN_BUF_SIZE = 16; const MAX_CONSECUTIVE_EMPTY_READS = 100; -const CR = charCode("\r"); -const LF = charCode("\n"); +const CR = "\r".charCodeAt(0); +const LF = "\n".charCodeAt(0); export class BufferFullError extends Error { name = "BufferFullError"; |