tor-browser

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

bug1871606.js (561B)


      1 // |jit-test| --more-compartments; skip-variant-if: --setpref=wasm_test_serialization=true, true; skip-variant-if: --wasm-compiler=ion, true
      2 dbg = newGlobal();
      3 dbg.b = this;
      4 dbg.eval("(" + function() {
      5  Debugger(b)
      6 } + ")()");
      7 var ins = wasmEvalText(`
      8   (table 1 funcref)
      9   (type $d (func (param f64)))
     10   (func $e
     11    (export "test")
     12     f64.const 0.0
     13     i32.const 0
     14     return_call_indirect (type $d)
     15   )
     16   (elem (i32.const 0) $e)
     17 `);
     18 
     19 assertErrorMessage(
     20  () => ins.exports.test(),
     21  WebAssembly.RuntimeError, /indirect call signature mismatch/
     22 );