<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> |