tor-browser

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

bug1445907.js (578B)


      1 // |jit-test| skip-if: !wasmDebuggingEnabled()
      2 
      3 // On ARM64, we failed to save x28 properly when generating code for the regexp
      4 // matcher.
      5 //
      6 // There's wasm and Debugger code here because the combination forces the use of
      7 // x28 and exposes the bug when running on the simulator.
      8 
      9 var g = newGlobal({newCompartment: true});
     10 var dbg = new Debugger(g);
     11 g.eval(`var m = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func (export "test")))')))`);
     12 var re = /./;
     13 dbg.onEnterFrame = function(frame) { re.exec("x") };
     14 result = g.eval("m.exports.test()");