Bug 163351

Summary: WebAssembly should support trapping.
Product: WebKit Reporter: Keith Miller <keith_miller>
Component: JavaScriptCoreAssignee: 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:    

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.