tor-browser

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

bug1862473.js (446B)


      1 var ins = wasmEvalText(`(module
      2  (func $func1)
      3  (func $func2 (param i32 arrayref arrayref i32 i32 i32 i32)
      4    return_call $func1
      5  )
      6  (func (export "test")
      7    i32.const 1
      8    ref.null array
      9    ref.null array
     10    i32.const -2
     11    i32.const -3
     12    i32.const -4
     13    i32.const -5
     14    call $func2
     15 
     16    ref.null array
     17    ref.cast (ref array)
     18    drop
     19  )
     20 )`);
     21 
     22 assertErrorMessage(() => ins.exports.test(), WebAssembly.RuntimeError, /bad cast/);