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_error_stack.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/rt/40_error_stack.js') diff --git a/cli/rt/40_error_stack.js b/cli/rt/40_error_stack.js index 2b7c42475..08647a8d8 100644 --- a/cli/rt/40_error_stack.js +++ b/cli/rt/40_error_stack.js @@ -3,17 +3,17 @@ ((window) => { // Some of the code here is adapted directly from V8 and licensed under a BSD // style license available here: https://github.com/v8/v8/blob/24886f2d1c565287d33d71e4109a53bf0b54b75c/LICENSE.v8 + const core = window.Deno.core; const colors = window.__bootstrap.colors; const assert = window.__bootstrap.util.assert; const internals = window.__bootstrap.internals; - const dispatchJson = window.__bootstrap.dispatchJson; function opFormatDiagnostics(diagnostics) { - return dispatchJson.sendSync("op_format_diagnostic", diagnostics); + return core.jsonOpSync("op_format_diagnostic", diagnostics); } function opApplySourceMap(location) { - const res = dispatchJson.sendSync("op_apply_source_map", location); + const res = core.jsonOpSync("op_apply_source_map", location); return { fileName: res.fileName, lineNumber: res.lineNumber, -- cgit v1.2.3