Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / regexp-charclass-crash.html
blob7cae6300511af7384ca3549d5c7fa8647de72950
1 <p>Tests a crash in the regular expression engine. If this test prints a PASS message, then it succeeded.</p>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 var string = "";
6 for (i = 0; i < 1000; ++i)
7 string += "[[**]]";
8 while (string.length < 8192) {
9 string += "[[**]]";
10 new RegExp(string);
12 document.writeln("<div>PASS: Got to pattern length of 8192 without crashing.</div>");
13 </script>