refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)

Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
This commit is contained in:
Bartek Iwańczuk 2020-09-16 22:22:43 +02:00 committed by GitHub
parent 104aebdfb5
commit 6c4da0e429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 177 additions and 373 deletions

View file

@ -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) {