tor-browser

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

bug1791401.js (467B)


      1 oomTest(function() {
      2  var f = Function(`
      3    // Don't actually enter the loop. This still causes the original bug and
      4    // additionally makes the test complete faster.
      5    //
      6    // Don't directly use |false|, otherwise the byte code emitter won't emit
      7    // the loop.
      8    var False = [false, false][0];
      9    if (False) {
     10      for (let x;;) {
     11        // Capture |x|, so it's freshened each loop iteration.
     12        Object(() => x);
     13      }
     14     }
     15  `);
     16  f();
     17 });