summaryrefslogtreecommitdiff
path: root/op_crates/web/abort_controller_test.js
diff options
context:
space:
mode:
authorBenjamin Gruenbaum <benjamingr@gmail.com>2020-11-14 14:10:23 +0200
committerGitHub <noreply@github.com>2020-11-14 13:10:23 +0100
commit3d65e57d7c48f5dd1307f83771fe5574d914cea3 (patch)
tree80396bd252f01c9794a226785582c0408c78549f /op_crates/web/abort_controller_test.js
parent3a0ebff641c5b5d8d3c87b67c3e6f5b4f004478f (diff)
fix: fix various global objects constructor length (#8373)
This commit changes various Web APIs constructors to match their signature in the browser.
Diffstat (limited to 'op_crates/web/abort_controller_test.js')
-rw-r--r--op_crates/web/abort_controller_test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/op_crates/web/abort_controller_test.js b/op_crates/web/abort_controller_test.js
index a65bc69ff..2f26ade28 100644
--- a/op_crates/web/abort_controller_test.js
+++ b/op_crates/web/abort_controller_test.js
@@ -118,6 +118,11 @@ function abortSignalHandlerLocation() {
const abortHandler = Object.getOwnPropertyDescriptor(signal, "onabort");
assertEquals(abortHandler, undefined);
}
+function abortSignalLength() {
+ const controller = new AbortController();
+ const { signal } = controller;
+ assertEquals(signal.constructor.length, 0);
+}
function main() {
basicAbortController();
signalCallsOnabort();
@@ -128,6 +133,7 @@ function main() {
abortSignalEventOrder();
abortSignalEventOrderComplex();
abortSignalHandlerLocation();
+ abortSignalLength();
}
main();