2022-01-07 22:09:52 -05:00
|
|
|
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
2021-02-04 17:18:32 -05:00
|
|
|
"use strict";
|
2020-07-19 13:49:44 -04:00
|
|
|
|
|
|
|
((window) => {
|
2020-09-16 16:22:43 -04:00
|
|
|
const core = window.Deno.core;
|
2020-07-19 13:49:44 -04:00
|
|
|
|
2020-09-12 05:53:57 -04:00
|
|
|
function opFormatDiagnostics(diagnostics) {
|
2021-04-12 15:55:05 -04:00
|
|
|
return core.opSync("op_format_diagnostic", diagnostics);
|
2020-07-19 13:49:44 -04:00
|
|
|
}
|
|
|
|
|
2021-09-18 09:40:04 -04:00
|
|
|
function opFormatFileName(location) {
|
|
|
|
return core.opSync("op_format_file_name", location);
|
|
|
|
}
|
|
|
|
|
2020-07-19 13:49:44 -04:00
|
|
|
function opApplySourceMap(location) {
|
2022-04-15 10:08:09 -04:00
|
|
|
return core.applySourceMap(location);
|
2020-07-19 13:49:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
window.__bootstrap.errorStack = {
|
|
|
|
opFormatDiagnostics,
|
2021-09-18 09:40:04 -04:00
|
|
|
opFormatFileName,
|
|
|
|
opApplySourceMap,
|
2020-07-19 13:49:44 -04:00
|
|
|
};
|
|
|
|
})(this);
|