Bug 163351
Summary: | WebAssembly should support trapping. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Keith Miller <keith_miller> |
Component: | JavaScriptCore | Assignee: | Saam Barati <saam> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | jfbastien, saam |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 164757, 164786, 165163, 165429 | ||
Bug Blocks: |
Keith Miller
...
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
JF Bastien
https://github.com/WebAssembly/design/blob/master/JS.md#traps
JF Bastien
FYI WebAssembly.RuntimeError is in Source/JavaScriptCore/wasm/js/
JF Bastien
Things that can trap:
- unreachable
- div
- rem
- trunk
- out-of-bounds memory access
- out-of-bounds call_indirect
- indirect call signature mismatch
Stack overflow is currently unspecified, so that we can return the same error as JS would on stack overflow.
JF Bastien
Two useful references:
https://github.com/WebAssembly/design/issues/729
https://github.com/WebAssembly/design/pull/708
JF Bastien
This seems related: https://github.com/WebAssembly/design/issues/883
Keith Miller
I think this was done in other bugs, closing.