tor-browser

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

bug1341326.js (444B)


      1 // |jit-test| skip-if: helperThreadCount() === 0
      2 function eval(source) {
      3    offThreadCompileModuleToStencil(source);
      4 }
      5 var N = 10000;
      6 var left = repeat_str('(1&', N);
      7 var right = repeat_str(')', N);
      8 var str = 'actual = '.concat(left, '1', right, ';');
      9 eval(str);
     10 function repeat_str(str, repeat_count) {
     11    var arr = new Array(--repeat_count);
     12    while (repeat_count != 0) arr[--repeat_count] = str;
     13    return str.concat.apply(str, arr);
     14 }