From 6c4da0e429eb47dae6a220c5576a39f137615bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 16 Sep 2020 22:22:43 +0200 Subject: refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync --- cli/rt/40_compiler_api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/rt/40_compiler_api.js') 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) { -- cgit v1.2.3