<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>163351</bug_id>
          
          <creation_ts>2016-10-12 13:30:29 -0700</creation_ts>
          <short_desc>WebAssembly should support trapping.</short_desc>
          <delta_ts>2017-03-28 11:03:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>164757</dependson>
    
    <dependson>164786</dependson>
    
    <dependson>165163</dependson>
    
    <dependson>165429</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Keith Miller">keith_miller</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>jfbastien</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1239454</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2016-10-12 13:30:29 -0700</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254092</commentid>
    <comment_count>1</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-11-28 16:30:01 -0800</bug_when>
    <thetext>https://github.com/WebAssembly/design/blob/master/JS.md#traps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254093</commentid>
    <comment_count>2</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-11-28 16:32:18 -0800</bug_when>
    <thetext>FYI WebAssembly.RuntimeError is in Source/JavaScriptCore/wasm/js/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254096</commentid>
    <comment_count>3</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-11-28 16:41:38 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254413</commentid>
    <comment_count>4</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-11-29 13:08:39 -0800</bug_when>
    <thetext>Two useful references:
https://github.com/WebAssembly/design/issues/729
https://github.com/WebAssembly/design/pull/708</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255269</commentid>
    <comment_count>5</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-12-01 09:36:22 -0800</bug_when>
    <thetext>This seems related: https://github.com/WebAssembly/design/issues/883</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291954</commentid>
    <comment_count>6</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2017-03-28 11:03:38 -0700</bug_when>
    <thetext>I think this was done in other bugs, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>