mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
parent
9705efd419
commit
46245b830a
18 changed files with 29 additions and 175 deletions
|
@ -18,7 +18,6 @@
|
|||
ObjectEntries,
|
||||
ObjectSetPrototypeOf,
|
||||
SymbolFor,
|
||||
SymbolToStringTag,
|
||||
} = window.__bootstrap.primordials;
|
||||
const webidl = window.__bootstrap.webidl;
|
||||
const consoleInternal = window.__bootstrap.console;
|
||||
|
@ -120,10 +119,6 @@
|
|||
return this.#code;
|
||||
}
|
||||
|
||||
get [SymbolToStringTag]() {
|
||||
return "DOMException";
|
||||
}
|
||||
|
||||
[SymbolFor("Deno.customInspect")](inspect) {
|
||||
if (this instanceof DOMException) {
|
||||
return `DOMException: ${this.#message}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue