tor-browser

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

savedframe-lookup-in-wasm.js (481B)


      1 g = newGlobal({newCompartment: true});
      2 g.parent = this;
      3 g.eval(`(function() {
      4  Debugger(parent).onExceptionUnwind = function(frame) { return frame.eval(""); }
      5 })()`);
      6 
      7 var module = new WebAssembly.Module(wasmTextToBinary(`
      8  (module (import $imp "" "inc") (func) (func $start (call $imp)) (start $start) (export "" (func $start)))
      9 `));
     10 
     11 var imports = {
     12    "": {
     13        inc: function() { undefined_function(); }
     14    }
     15 };
     16 
     17 new WebAssembly.Instance(module, imports).exports['']();