mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor(deno): remove concept of bin & json ops (#10145)
This commit is contained in:
parent
a20504642d
commit
46b1c653c0
76 changed files with 534 additions and 1080 deletions
|
@ -5,11 +5,11 @@
|
|||
const core = window.Deno.core;
|
||||
|
||||
function opFormatDiagnostics(diagnostics) {
|
||||
return core.jsonOpSync("op_format_diagnostic", diagnostics);
|
||||
return core.opSync("op_format_diagnostic", diagnostics);
|
||||
}
|
||||
|
||||
function opApplySourceMap(location) {
|
||||
const res = core.jsonOpSync("op_apply_source_map", location);
|
||||
const res = core.opSync("op_apply_source_map", location);
|
||||
return {
|
||||
fileName: res.fileName,
|
||||
lineNumber: res.lineNumber,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue