mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
3f08a40412
This commit moves "op_format_location" to "core/ops_builtin.rs" and removes "Deno.core.createPrepareStackTrace" in favor of "Deno.core.prepareStackTrace". Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
14 lines
327 B
JavaScript
14 lines
327 B
JavaScript
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
|
"use strict";
|
|
|
|
((window) => {
|
|
const core = window.Deno.core;
|
|
|
|
function opFormatDiagnostics(diagnostics) {
|
|
return core.opSync("op_format_diagnostic", diagnostics);
|
|
}
|
|
|
|
window.__bootstrap.errorStack = {
|
|
opFormatDiagnostics,
|
|
};
|
|
})(this);
|