1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

fix(ext/web): Format DOMException stack property (#12333)

This commit is contained in:
Kenta Moriuchi 2021-10-09 00:01:02 +09:00 committed by GitHub
parent 2155e7545f
commit 5f405bf114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,