diff options
Diffstat (limited to 'cli/rt/40_compiler_api.js')
-rw-r--r-- | cli/rt/40_compiler_api.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/rt/40_compiler_api.js b/cli/rt/40_compiler_api.js index 8a2aa759a..ffe58559e 100644 --- a/cli/rt/40_compiler_api.js +++ b/cli/rt/40_compiler_api.js @@ -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) { |