From aed4265bd380c12dd79719c490456628f774eff5 Mon Sep 17 00:00:00 2001 From: Adam Klein Date: Thu, 10 Nov 2022 15:06:28 +0000 Subject: [PATCH] Bug 1796866 [wpt PR 36607] - [wasm] Enable and fix wasm exceptions WPTs, a=testonly Automatic update from web-platform-tests [wasm] Enable and fix wasm exceptions WPTs For most tests, expectations were deleted since the tests now pass. The getArg test was corrected to match the spec: https://webassembly.github.io/exception-handling/js-api/index.html#dom-exception-getarg The tag type test had its expectations updated, but is still (incorrectly) failing because the test also depends on the not-yet-shipped type reflection proposal. Updated the spec bug to bring this conversation back to the spec (https://github.com/WebAssembly/exception-handling/issues/172). Bug: v8:11992 Change-Id: I979a9eb00219e0b9515d43bbeff6f80ac57df7c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3972061 Reviewed-by: Andreas Haas Commit-Queue: Adam Klein Cr-Commit-Position: refs/heads/main@{#1063368} -- wpt-commits: b8516ab3ff992263cb65e9467a82f4760fd8e89e wpt-pr: 36607 --- .../tests/wasm/jsapi/exception/getArg.tentative.any.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/web-platform/tests/wasm/jsapi/exception/getArg.tentative.any.js b/testing/web-platform/tests/wasm/jsapi/exception/getArg.tentative.any.js index ecd2fbd42fd18..4b72c61f47b7e 100644 --- a/testing/web-platform/tests/wasm/jsapi/exception/getArg.tentative.any.js +++ b/testing/web-platform/tests/wasm/jsapi/exception/getArg.tentative.any.js @@ -20,7 +20,7 @@ test(() => { test(() => { const tag = new WebAssembly.Tag({ parameters: [] }); const exn = new WebAssembly.Exception(tag, []); - assert_throws_js(TypeError, () => exn.getArg(tag, 1)); + assert_throws_js(RangeError, () => exn.getArg(tag, 1)); }, "Index out of bounds"); test(() => {