mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 21:54:48 +00:00
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:
parent
104aebdfb5
commit
6c4da0e429
31 changed files with 177 additions and 373 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue