diff options
Diffstat (limited to 'runtime/js/41_prompt.js')
-rw-r--r-- | runtime/js/41_prompt.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/js/41_prompt.js b/runtime/js/41_prompt.js index 787b9f9f7..4e2f0fffc 100644 --- a/runtime/js/41_prompt.js +++ b/runtime/js/41_prompt.js @@ -1,9 +1,14 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { core, primordials } from "ext:core/mod.js"; +const { + ArrayPrototypePush, + StringPrototypeCharCodeAt, + Uint8Array, +} = primordials; + import { isatty } from "ext:runtime/40_tty.js"; import { stdin } from "ext:deno_io/12_io.js"; -const { ArrayPrototypePush, StringPrototypeCharCodeAt, Uint8Array } = - primordials; + const LF = StringPrototypeCharCodeAt("\n", 0); const CR = StringPrototypeCharCodeAt("\r", 0); |