mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +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
|
@ -13,7 +13,6 @@
|
|||
SetPrototypeAdd,
|
||||
SetPrototypeDelete,
|
||||
Symbol,
|
||||
SymbolToStringTag,
|
||||
TypeError,
|
||||
} = window.__bootstrap.primordials;
|
||||
|
||||
|
@ -72,10 +71,6 @@
|
|||
get aborted() {
|
||||
return Boolean(this[aborted]);
|
||||
}
|
||||
|
||||
get [SymbolToStringTag]() {
|
||||
return "AbortSignal";
|
||||
}
|
||||
}
|
||||
defineEventHandler(AbortSignal.prototype, "abort");
|
||||
|
||||
|
@ -91,10 +86,6 @@
|
|||
abort() {
|
||||
this.#signal[signalAbort]();
|
||||
}
|
||||
|
||||
get [SymbolToStringTag]() {
|
||||
return "AbortController";
|
||||
}
|
||||
}
|
||||
|
||||
webidl.configurePrototype(AbortController);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue