tor-browser

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

bug-1238610.js (588B)


      1 // |jit-test| allow-oom; skip-if: !hasFunction.oomAfterAllocations || helperThreadCount() === 0
      2 
      3 lfcode = new Array();
      4 dbg = Debugger();
      5 dbg.onEnterFrame = function() {};
      6 g = newGlobal();
      7 lfcode.push(`
      8  oomAfterAllocations(100);
      9  new Number();
     10  dbg.addDebuggee(g);
     11 `)
     12 file = lfcode.shift();
     13 loadFile(file);
     14 function loadFile(lfVarx) {
     15  lfGlobal = newGlobal()
     16  for (lfLocal in this)
     17      if (!(lfLocal in lfGlobal))
     18          lfGlobal[lfLocal] = this[lfLocal]
     19  offThreadCompileToStencil(lfVarx);
     20  var stencil = lfGlobal.finishOffThreadStencil();
     21  lfGlobal.evalStencil(stencil);
     22 }