tor-browser

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

suspender.js (328B)


      1 var ins = wasmEvalText(`
      2 (module
      3  (func (export "w0") (param nullexternref)
      4  )
      5 )`);
      6 let v2 = WebAssembly.promising(ins.exports.w0);
      7 
      8 var res = WebAssembly.promising(ins.exports.w0);
      9 Promise.resolve().then(() => {
     10  res().then(i => {
     11    assertEq(42, i)
     12  }).catch(e => {
     13    assertEq(e instanceof TypeError, true);
     14  });
     15 });