bug1994994.js (254B)
1 const length = 32767; 2 const pattern_body = "^" + "a".repeat(length); 3 const pattern = new RegExp("(?<=" + pattern_body + ")", "m"); 4 let caught = undefined; 5 try { 6 pattern.exec(""); 7 } catch (e) { caught = e; } 8 assertEq(caught?.message, "regexp too big");