tor-browser

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

shutdown.js (342B)


      1 // Test shutting down the program with suspended stack.
      2 
      3 const suspending = new WebAssembly.Suspending(() => new Promise(() => {}));
      4 const ins = wasmEvalText(`(module
      5  (import "" "s" (func $imp))
      6  (func (export "f")
      7    call $imp
      8  )
      9 )`, {"": {s: suspending,}});
     10 const promising = WebAssembly.promising(ins.exports.f);
     11 var p = promising();