summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp/bug1786012.js
blob: f806fd22bb6755d09d1fad970042a5a1e0fd21ee (plain)
1
2
3
4
5
6
7
8
var repeated = "A".repeat(65536);
var src = "^(?:" + repeated + ")\$";

for (var i = 0; i < 100; i++) {
  try {
    RegExp(src).test();
  } catch {}
}