tor-browser

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

bug674776.js (343B)


      1 // |jit-test| slow
      2 
      3 /* Make a lot of functions of the form:
      4 function x1(){x1();}
      5 function x2(){x2();}
      6 function x3(){x3();}
      7 ...
      8 */
      9 
     10 var g = newGlobal({newCompartment: true});
     11 var dbg = new g.Debugger(this);
     12 
     13 var s = '';
     14 for (var i = 0; i < 70000; i++) {
     15    s += 'function x' + i + '() { x' + i + '(); }\n';
     16 }
     17 s += 'pc2line(1);\n'
     18 evaluate(s);