diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-16 22:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 22:22:43 +0200 |
commit | 6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch) | |
tree | a8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/40_compiler_api.js | |
parent | 104aebdfb5d01f7482bacef6d58c2ce16da44334 (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_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) { |