blob: bd3d04cf84905e3fd4ad0bb82b3cc147c65a7daa [file] [log] [blame]
//@ runDefault("--alwaysUseShadowChicken=true", "--jitPolicyScale=0", "--useRandomizingFuzzerAgent=1", "--maxPerThreadStackUsage=1572863")
//@ slow!
class C {
constructor(func) {
this.func = func;
}
runTest() {
this.func();
}
}
function recurseAndTest() {
try {
recurseAndTest();
test.runTest();
} catch (e) {
}
}
const howManyParentheses = 1000;
const deepRE = new RegExp('('.repeat(howManyParentheses) + ')'.repeat(howManyParentheses));
let test =
new C(() => {
deepRE.exec('');
});
recurseAndTest();