From d9896d64ce919a46a6e8c6666c3b87cc9ae79b7b Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Thu, 25 Jun 2020 11:40:51 +0100 Subject: refactor: shift copyBytes and tweak deps to reduce dependencies (#6469) --- std/io/bufio.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/io/bufio.ts') 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"; -- cgit v1.2.3