tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1866545.js (449B)


      1 // Tests stack alignment during tail calls (in Ion).
      2 
      3 var ins = wasmEvalText(`
      4  (module
      5    (func $trap
      6        (param $i i32) (param $arr i32)
      7        unreachable
      8    )
      9    (func $second
     10      (return_call $trap
     11        (i32.const 33)
     12        (i32.const 66)
     13      )
     14    )
     15    (func (export "test")
     16        (call $second)
     17    )
     18  )
     19 `);
     20 
     21 assertErrorMessage(
     22    () => ins.exports.test(),
     23    WebAssembly.RuntimeError,
     24    "unreachable executed",
     25 );