mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
fix(ext/web): Format DOMException stack property (#12333)
This commit is contained in:
parent
2155e7545f
commit
5f405bf114
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@
|
|||
});
|
||||
this.#code = nameToCodeMapping[this.#name] ?? 0;
|
||||
|
||||
const error = new Error(`DOMException: ${this.#message}`);
|
||||
const error = new Error(this.#message);
|
||||
error.name = "DOMException";
|
||||
ObjectDefineProperty(this, "stack", {
|
||||
value: error.stack,
|
||||
writable: true,
|
||||
|
|
Loading…
Reference in a new issue