tor-browser

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

interrupt-several-instances.js (560B)


      1 // |jit-test| exitstatus: 6; skip-if: !wasmIsSupported()
      2 
      3 // Don't include wasm.js in timeout tests: when wasm isn't supported, it will
      4 // quit(0) which will cause the test to fail.
      5 
      6 load(libdir + "asm.js");
      7 
      8 var code = `
      9    var out = ffi.out;
     10    function f() {
     11        out();
     12    }
     13    return f;
     14 `;
     15 
     16 var ffi = {};
     17 ffi.out = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func (export "f") (loop $top (br $top))))'))).exports.f;
     18 
     19 timeout(1);
     20 asmLink(asmCompile('glob', 'ffi', USE_ASM + code), this, ffi)();
     21 assertEq(true, false);