Commit 6376164
[JSC] Error.isError(WebAssembly.Exception) should be
https://bugs.webkit.org/show_bug.cgi?id=304410
Reviewed by Yusuke Suzuki and Sosuke Suzuki.
According to the spec discussion, the current `WebAssembly.Exception` does not have `[[ErrorData]]` semantically.
So `Error.isError(WebAssembly.Exception)` should be `false`.
- WebAssembly/spec#1914
- https://webassembly.github.io/spec/js-api/#exceptions
Test: JSTests/wasm/stress/exception-thrown-out-of-wasm-integration-error-is-error.js
* JSTests/wasm/stress/exception-thrown-out-of-wasm-integration-error-is-error.js: Added.
(import.Builder.from.string_appeared_here.import.as.assert.from.string_appeared_here.catch):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyException.cpp:
(JSC::JSWebAssemblyException::createStructure):
Canonical link: https://commits.webkit.org/304917@mainfalse
1 parent 45d2ff0 commit 6376164
File tree
2 files changed
+40
-1
lines changed- JSTests/wasm/stress
- Source/JavaScriptCore/wasm/js
2 files changed
+40
-1
lines changedLines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments