diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-16 22:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 22:22:43 +0200 |
commit | 6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch) | |
tree | a8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/40_tty.js | |
parent | 104aebdfb5d01f7482bacef6d58c2ce16da44334 (diff) |
refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
Diffstat (limited to 'cli/rt/40_tty.js')
-rw-r--r-- | cli/rt/40_tty.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/rt/40_tty.js b/cli/rt/40_tty.js index 3bab4f321..b50b7668c 100644 --- a/cli/rt/40_tty.js +++ b/cli/rt/40_tty.js @@ -1,18 +1,18 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { - const { sendSync } = window.__bootstrap.dispatchJson; + const core = window.Deno.core; function consoleSize(rid) { - return sendSync("op_console_size", { rid }); + return core.jsonOpSync("op_console_size", { rid }); } function isatty(rid) { - return sendSync("op_isatty", { rid }); + return core.jsonOpSync("op_isatty", { rid }); } function setRaw(rid, mode) { - sendSync("op_set_raw", { rid, mode }); + core.jsonOpSync("op_set_raw", { rid, mode }); } window.__bootstrap.tty = { |