tor-browser

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

bug1913876.js (398B)


      1 // |jit-test| test-also=-P wasm_lazy_tiering --setpref=wasm_lazy_tiering_synchronous;
      2 
      3 let {a} = wasmEvalText(`(module
      4  (type $t (func))
      5  (func (export "a")
      6    call $trap
      7    ref.null $t
      8    call_ref $t
      9  )
     10  (func $trap
     11    unreachable
     12  )
     13 )`).exports;
     14 
     15 const tierUpThreshold = 10;
     16 for (let i = 0; i < tierUpThreshold; i++) {
     17  assertErrorMessage(a, WebAssembly.RuntimeError, /unreachable/);
     18 }