mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +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
|
@ -32,7 +32,6 @@ delete Object.prototype.__proto__;
|
|||
const location = window.__bootstrap.location;
|
||||
const build = window.__bootstrap.build;
|
||||
const version = window.__bootstrap.version;
|
||||
const errorStack = window.__bootstrap.errorStack;
|
||||
const os = window.__bootstrap.os;
|
||||
const timers = window.__bootstrap.timers;
|
||||
const base64 = window.__bootstrap.base64;
|
||||
|
@ -221,11 +220,8 @@ delete Object.prototype.__proto__;
|
|||
);
|
||||
build.setBuildInfo(runtimeOptions.target);
|
||||
util.setLogDebug(runtimeOptions.debugFlag, source);
|
||||
const prepareStackTrace = core.createPrepareStackTrace(
|
||||
errorStack.opFormatFileName,
|
||||
);
|
||||
// deno-lint-ignore prefer-primordials
|
||||
Error.prepareStackTrace = prepareStackTrace;
|
||||
Error.prepareStackTrace = core.prepareStackTrace;
|
||||
}
|
||||
|
||||
function registerErrors() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue