Skip to content

Commit

Permalink
Merge branch 'main' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Feb 22, 2023
2 parents 3a7d640 + a2f24ee commit 2ae37bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ dictionary ExceptionOptions {
[LegacyNamespace=WebAssembly, Exposed=*]
interface Exception {
constructor(Tag exceptionTag, sequence<any> payload, optional ExceptionOptions options = {});
any getArg(Tag exceptionTag, unsigned long index);
any getArg(Tag exceptionTag, [EnforceRange] unsigned long index);
boolean is(Tag exceptionTag);
readonly attribute (DOMString or undefined) stack;
};
Expand Down
2 changes: 1 addition & 1 deletion test/js-api/exception/getArg.tentative.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test(() => {
const tag = new WebAssembly.Tag({ parameters: [] });
const exn = new WebAssembly.Exception(tag, []);
for (const value of outOfRangeValues) {
assert_throws_js(RangeError, () => exn.getArg(tag, value));
assert_throws_js(TypeError, () => exn.getArg(tag, value));
}
}, "Getting out-of-range argument");

Expand Down

0 comments on commit 2ae37bf

Please sign in to comment.