tor-browser

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

regress-1661723.js (524B)


      1 let { exports } = new WebAssembly.Instance(
      2    new WebAssembly.Module(wasmTextToBinary(`
      3    (module
      4        (func (import "module" "fn") (param f64 i32) (result i32 f64))
      5        (func (export "f") (result i32)
      6            f64.const 4.2
      7            i32.const 7
      8            call 0
      9            drop
     10        )
     11    )
     12    `)),
     13    {
     14        "module": {
     15          fn(f32, i32) {
     16            assertEq(f32, 4.2);
     17            assertEq(i32, 7);
     18            return [2, 7.3];
     19          },
     20        }
     21    });
     22 
     23 assertEq(exports.f(), 2);