summaryrefslogtreecommitdiff
path: root/cli/rt/40_repl.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-16 22:22:43 +0200
committerGitHub <noreply@github.com>2020-09-16 22:22:43 +0200
commit6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch)
treea8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/40_repl.js
parent104aebdfb5d01f7482bacef6d58c2ce16da44334 (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_repl.js')
-rw-r--r--cli/rt/40_repl.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/rt/40_repl.js b/cli/rt/40_repl.js
index 4966c45be..8b05aa4c3 100644
--- a/cli/rt/40_repl.js
+++ b/cli/rt/40_repl.js
@@ -4,16 +4,15 @@
const core = window.Deno.core;
const exit = window.__bootstrap.os.exit;
const version = window.__bootstrap.version.version;
- const dispatchJson = window.__bootstrap.dispatchJson;
const close = window.__bootstrap.resources.close;
const inspectArgs = window.__bootstrap.console.inspectArgs;
function opStartRepl(historyFile) {
- return dispatchJson.sendSync("op_repl_start", { historyFile });
+ return core.jsonOpSync("op_repl_start", { historyFile });
}
function opReadline(rid, prompt) {
- return dispatchJson.sendAsync("op_repl_readline", { rid, prompt });
+ return core.jsonOpAsync("op_repl_readline", { rid, prompt });
}
function replLog(...args) {