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(() => {