summaryrefslogtreecommitdiff
path: root/op_crates/web/abort_controller_test.js
diff options
context:
space:
mode:
authorBenjamin Gruenbaum <benjamingr@gmail.com>2020-11-06 03:40:36 +0200
committerGitHub <noreply@github.com>2020-11-06 12:40:36 +1100
commitbfa00bef220fd26bed26940cdcaf5edf4bf83e13 (patch)
treee9462c08bcb22ea71e866532bc1afedad5f40048 /op_crates/web/abort_controller_test.js
parent23557331c960d6dd548904796f3948dde09972d0 (diff)
fix(op_crates/web): define abort event handler on prototype (#8230)
Diffstat (limited to 'op_crates/web/abort_controller_test.js')
-rw-r--r--op_crates/web/abort_controller_test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/op_crates/web/abort_controller_test.js b/op_crates/web/abort_controller_test.js
index f9ff3d166..4d3741986 100644
--- a/op_crates/web/abort_controller_test.js
+++ b/op_crates/web/abort_controller_test.js
@@ -95,6 +95,12 @@ function abortSignalEventOrder() {
assertEquals(arr[1], 2);
assertEquals(arr[2], 3);
}
+function abortSignalHandlerLocation() {
+ const controller = new AbortController();
+ const { signal } = controller;
+ const abortHandler = Object.getOwnPropertyDescriptor(signal, "onabort");
+ assertEquals(abortHandler, undefined);
+}
function main() {
basicAbortController();
signalCallsOnabort();
@@ -103,6 +109,7 @@ function main() {
controllerHasProperToString();
abortSignalIllegalConstructor();
abortSignalEventOrder();
+ abortSignalHandlerLocation();
}
main();