summaryrefslogtreecommitdiff
path: root/ext/web/03_abort_signal.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-27 16:27:22 +0100
committerGitHub <noreply@github.com>2022-01-27 16:27:22 +0100
commitf248e6f1778dc26db91d3322de2ecca5d1aa9866 (patch)
tree46b1ff59091cc8d31ff67427173d3a0148734007 /ext/web/03_abort_signal.js
parent382a978859a7a7a4351542be818bb2e59523429c (diff)
Revert "refactor: update runtime code for primordial checks for "instanceof" (#13497)" (#13511)
This reverts commit 884143218fad0e18f7553aaf079d52de703f7601.
Diffstat (limited to 'ext/web/03_abort_signal.js')
-rw-r--r--ext/web/03_abort_signal.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/ext/web/03_abort_signal.js b/ext/web/03_abort_signal.js
index 8b089d031..cd9b11d4b 100644
--- a/ext/web/03_abort_signal.js
+++ b/ext/web/03_abort_signal.js
@@ -77,17 +77,17 @@
}
get aborted() {
- webidl.assertBranded(this, AbortSignalPrototype);
+ webidl.assertBranded(this, AbortSignal);
return this[abortReason] !== undefined;
}
get reason() {
- webidl.assertBranded(this, AbortSignalPrototype);
+ webidl.assertBranded(this, AbortSignal);
return this[abortReason];
}
throwIfAborted() {
- webidl.assertBranded(this, AbortSignalPrototype);
+ webidl.assertBranded(this, AbortSignal);
if (this[abortReason] !== undefined) {
throw this[abortReason];
}
@@ -96,7 +96,6 @@
defineEventHandler(AbortSignal.prototype, "abort");
webidl.configurePrototype(AbortSignal);
- const AbortSignalPrototype = AbortSignal.prototype;
class AbortController {
[signal] = new AbortSignal(illegalConstructorKey);
@@ -106,22 +105,21 @@
}
get signal() {
- webidl.assertBranded(this, AbortControllerPrototype);
+ webidl.assertBranded(this, AbortController);
return this[signal];
}
abort(reason) {
- webidl.assertBranded(this, AbortControllerPrototype);
+ webidl.assertBranded(this, AbortController);
this[signal][signalAbort](reason);
}
}
webidl.configurePrototype(AbortController);
- const AbortControllerPrototype = AbortController.prototype;
webidl.converters["AbortSignal"] = webidl.createInterfaceConverter(
"AbortSignal",
- AbortSignal.prototype,
+ AbortSignal,
);
function newSignal() {
@@ -144,7 +142,6 @@
window.AbortSignal = AbortSignal;
window.AbortController = AbortController;
window.__bootstrap.abortSignal = {
- AbortSignalPrototype,
add,
signalAbort,
remove,