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:
李瑞丰 2021-09-25 01:07:22 +08:00 committed by GitHub
parent 9705efd419
commit 46245b830a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 29 additions and 175 deletions

View file

@ -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);