diff options
Diffstat (limited to 'runtime/js/41_prompt.js')
-rw-r--r-- | runtime/js/41_prompt.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/js/41_prompt.js b/runtime/js/41_prompt.js index d74a937aa..cb088dafa 100644 --- a/runtime/js/41_prompt.js +++ b/runtime/js/41_prompt.js @@ -5,7 +5,6 @@ const { isatty } = window.__bootstrap.tty; const LF = "\n".charCodeAt(0); const CR = "\r".charCodeAt(0); - const decoder = new TextDecoder(); const core = window.Deno.core; function alert(message = "Alert") { @@ -70,7 +69,7 @@ } buf.push(c[0]); } - return decoder.decode(new Uint8Array(buf)); + return core.decode(new Uint8Array(buf)); } window.__bootstrap.prompt = { |