mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14: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
|
@ -3,17 +3,17 @@
|
|||
// This file contains the runtime APIs which will dispatch work to the internal
|
||||
// compiler within Deno.
|
||||
((window) => {
|
||||
const core = window.Deno.core;
|
||||
const util = window.__bootstrap.util;
|
||||
const { sendAsync } = window.__bootstrap.dispatchJson;
|
||||
|
||||
function opCompile(request) {
|
||||
return sendAsync("op_compile", request);
|
||||
return core.jsonOpAsync("op_compile", request);
|
||||
}
|
||||
|
||||
function opTranspile(
|
||||
request,
|
||||
) {
|
||||
return sendAsync("op_transpile", request);
|
||||
return core.jsonOpAsync("op_transpile", request);
|
||||
}
|
||||
|
||||
function checkRelative(specifier) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue