aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js')
-rw-r--r--tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js b/tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js
index 2bb43a9308d..66c41340c20 100644
--- a/tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js
+++ b/tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js
@@ -131,7 +131,9 @@ test(() => {
const {fn} = functions;
- assert_throws(new RangeError(), () => table.set(-1, fn));
+ // -1 is the wrong type hence the type check on entry gets this
+ // before the range check does.
+ assert_throws(new TypeError(), () => table.set(-1, fn));
assert_throws(new RangeError(), () => table.set(5, fn));
assert_equal_to_array(table, [null, null, null, null, null]);
}, "Setting out-of-bounds");