mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 16:42:21 -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;
|
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", {
|
ObjectDefineProperty(this, "stack", {
|
||||||
value: error.stack,
|
value: error.stack,
|
||||||
writable: true,
|
writable: true,
|
||||||
|
|
Loading…
Reference in a new issue