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_error_stack.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_error_stack.js')
-rw-r--r-- | cli/rt/40_error_stack.js | 6 |
1 files changed, 3 insertions, 3 deletions
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, |