blob: 7cae6300511af7384ca3549d5c7fa8647de72950 [file] [log] [blame]
<p>Tests a crash in the regular expression engine. If this test prints a PASS message, then it succeeded.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var string = "";
for (i = 0; i < 1000; ++i)
string += "[[**]]";
while (string.length < 8192) {
string += "[[**]]";
new RegExp(string);
}
document.writeln("<div>PASS: Got to pattern length of 8192 without crashing.</div>");
</script>