summaryrefslogtreecommitdiff
path: root/std/io/bufio.ts
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-06-25 11:40:51 +0100
committerGitHub <noreply@github.com>2020-06-25 06:40:51 -0400
commitd9896d64ce919a46a6e8c6666c3b87cc9ae79b7b (patch)
treed91a28318521361d7c559cb5380051df466b7589 /std/io/bufio.ts
parentc98038a03228d527cd90d9f1fc0118a3fe47dce0 (diff)
refactor: shift copyBytes and tweak deps to reduce dependencies (#6469)
Diffstat (limited to 'std/io/bufio.ts')
-rw-r--r--std/io/bufio.ts6
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";