tor-browser

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

helper.js (303B)


      1 function call_later(f) {
      2  const builder = new WasmModuleBuilder();
      3  const functionIndex = builder.addImport("module", "imported", kSig_v_v);
      4  builder.addStart(functionIndex);
      5  const buffer = builder.toBuffer();
      6 
      7  WebAssembly.instantiate(buffer, {
      8    "module": {
      9      "imported": f,
     10    }
     11  });
     12 }