mirror of
https://github.com/denoland/deno.git
synced 2025-08-30 07:18:02 +00:00
fix(cli/fmt_errors): Abbreviate long data URLs in stack traces (#12127)
Co-authored-by: Mike White <mike.white@auctane.com>
This commit is contained in:
parent
f840906943
commit
75ca013f07
9 changed files with 80 additions and 22 deletions
|
@ -8,6 +8,10 @@
|
|||
return core.opSync("op_format_diagnostic", diagnostics);
|
||||
}
|
||||
|
||||
function opFormatFileName(location) {
|
||||
return core.opSync("op_format_file_name", location);
|
||||
}
|
||||
|
||||
function opApplySourceMap(location) {
|
||||
const res = core.opSync("op_apply_source_map", location);
|
||||
return {
|
||||
|
@ -18,7 +22,8 @@
|
|||
}
|
||||
|
||||
window.__bootstrap.errorStack = {
|
||||
opApplySourceMap,
|
||||
opFormatDiagnostics,
|
||||
opFormatFileName,
|
||||
opApplySourceMap,
|
||||
};
|
||||
})(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue