tor-browser

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

bug1697077.js (461B)


      1 // |jit-test| skip-if: !('interruptRegexp' in this) || getBuildConfiguration('pbl')
      2 // skip testing under PBL because interruption of regex engine here seems to
      3 // depend on GC behavior and is hard to reproduce reliably.
      4 var s0 = "A".repeat(10*1024);
      5 var interrupted = false;
      6 gczeal(0);
      7 setInterruptCallback(() => {
      8  interrupted = true;
      9  startgc(7,'shrinking');
     10  return true;
     11 });
     12 assertEq(interruptRegexp(/a(bc|bd)/, s0), null);
     13 assertEq(interrupted, true);