Bug 163351 - WebAssembly should support trapping.
Summary: WebAssembly should support trapping.
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on: 164757 164786 165163 165429
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-12 13:30 PDT by Keith Miller
Modified: 2017-03-28 11:03 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-10-12 13:30:29 PDT
...
Comment 2 JF Bastien 2016-11-28 16:32:18 PST
FYI WebAssembly.RuntimeError is in Source/JavaScriptCore/wasm/js/
Comment 3 JF Bastien 2016-11-28 16:41:38 PST
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.
Comment 5 JF Bastien 2016-12-01 09:36:22 PST
This seems related: https://github.com/WebAssembly/design/issues/883
Comment 6 Keith Miller 2017-03-28 11:03:38 PDT
I think this was done in other bugs, closing.