blob: 8c9dce38384d37c48847eff7abb7c3c0f0a7f194 [file] [log] [blame]
function testRegExp1()
{
/((a{100000000})*b{2100000000})+/.test("b");
}
function testRegExp2()
{
/(a{1000000000}b{1000000000}|c{10009s0000}|)d{1094967295}e{1500000000}/.test("abcde");
}
function test(testRE)
{
for (let i = 0; i < 5000; ++i) {
try {
testRE();
} catch {};
}
}
test(testRegExp1);
test(testRegExp2);