tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3ae74ae59ced754216c3a55938d9209d5c94722b
parent 82d54cc264e04f34445e78021363de6959d4841e
Author: Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com>
Date:   Tue,  6 Jan 2026 21:45:20 +0000

Bug 2007689 [wpt PR 56918] - [wasm] Add the test for Error.isError(WebAssembly.Exception), a=testonly

Automatic update from web-platform-tests
[wasm] Add the test for Error.isError(WebAssembly.Exception)

According to the spec discussion,
the current `WebAssembly.Exception` does not have `[[ErrorData]]` semantically.

- https://github.com/WebAssembly/spec/issues/1914
- https://webassembly.github.io/spec/js-api/#exceptions
- https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-properties-of-error-instances

--

wpt-commits: a16ea9a37a840b2035c89f083bdcdc5a8ffdf124
wpt-pr: 56918

Diffstat:
Mtesting/web-platform/tests/wasm/jsapi/exception/basic.tentative.any.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/wasm/jsapi/exception/basic.tentative.any.js b/testing/web-platform/tests/wasm/jsapi/exception/basic.tentative.any.js @@ -7,6 +7,11 @@ function assert_throws_wasm(fn, message) { assert_not_reached(`expected to throw with ${message}`); } catch (e) { assert_true(e instanceof WebAssembly.Exception, `Error should be a WebAssembly.Exception with ${message}`); + // According to the spec discussion, the current `WebAssembly.Exception` does not have `[[ErrorData]]` semantically. + // - https://github.com/WebAssembly/spec/issues/1914 + // - https://webassembly.github.io/spec/js-api/#exceptions + // - https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-properties-of-error-instances + assert_false(Error.isError(e), `Error.isError(WebAssembly.Exception) should be false due to lacking [[ErrorData]]`); } }