You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
432 B

/*===
compiled ok
===*/
/* The regexp compiler had a bug: recursion depth was incremented but never
* decremented. Hence a sequence of disjunctions, while having a low maximum
* recursion depth, will trigger the recursion limit.
*/
try {
var t, i;
var r;
t = '^';
for (i = 0; i < 100; i++) {
t = t + '(?:a|b)';
}
r = new RegExp(t);
print('compiled ok');
} catch (e) {
print(e.name);
}