tor-browser

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

bug1238815.js (421B)


      1 // This program crashes the ARM code generator because the machine code is
      2 // longer than the 32MB range of ARM branch instructions.
      3 //
      4 // Baseline should not attempt to compile the script.
      5 
      6 i = 1;
      7 function test(s) {
      8    return eval("line0 = Error.lineNumber\ndebugger\n" + s);
      9 }
     10 function repeat(s) {
     11        return Array(65 << 13).join(s)
     12 }
     13 long_expr = repeat(" + i")
     14 long_throw_stmt = long_expr;
     15 test(long_throw_stmt);