blob: 3a600a88d4e89213b000d588cad144b7234acdf9 [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.layoutTestController)
layoutTestController.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>