Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 2ae37bf

Browse files
committed
Merge branch 'main' into HEAD
2 parents 3a7d640 + a2f24ee commit 2ae37bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ dictionary ExceptionOptions {
13011301
[LegacyNamespace=WebAssembly, Exposed=*]
13021302
interface Exception {
13031303
constructor(Tag exceptionTag, sequence<any> payload, optional ExceptionOptions options = {});
1304-
any getArg(Tag exceptionTag, unsigned long index);
1304+
any getArg(Tag exceptionTag, [EnforceRange] unsigned long index);
13051305
boolean is(Tag exceptionTag);
13061306
readonly attribute (DOMString or undefined) stack;
13071307
};

test/js-api/exception/getArg.tentative.any.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test(() => {
4343
const tag = new WebAssembly.Tag({ parameters: [] });
4444
const exn = new WebAssembly.Exception(tag, []);
4545
for (const value of outOfRangeValues) {
46-
assert_throws_js(RangeError, () => exn.getArg(tag, value));
46+
assert_throws_js(TypeError, () => exn.getArg(tag, value));
4747
}
4848
}, "Getting out-of-range argument");
4949

0 commit comments

Comments
 (0)