tor-browser

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

inline-arguments-profiler.js (302B)


      1 function foo() { return arguments; }
      2 function bar(x) { return foo(x); }
      3 
      4 // Turning on the profiler uses up a register and increases register pressure.
      5 enableGeckoProfiling();
      6 with ({}) {}
      7 for (var i = 0; i < 100; i++) {
      8  var result = bar(3);
      9  assertEq(result.length, 1);
     10  assertEq(result[0], 3);
     11 }