mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
refactor: add core.formatLocationFilename, remove op_format_filename (#14474)
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>
This commit is contained in:
parent
5ddb83a4c2
commit
3f08a40412
9 changed files with 89 additions and 104 deletions
|
@ -8,12 +8,7 @@
|
|||
return core.opSync("op_format_diagnostic", diagnostics);
|
||||
}
|
||||
|
||||
function opFormatFileName(location) {
|
||||
return core.opSync("op_format_file_name", location);
|
||||
}
|
||||
|
||||
window.__bootstrap.errorStack = {
|
||||
opFormatDiagnostics,
|
||||
opFormatFileName,
|
||||
};
|
||||
})(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue