Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / regexp-match-exception.js
blob75cd22dd83c73a70c3f4ae8dd9f67da06df48140
1 description("This tests that ScriptRegexp matching fails when running into an exceptional condition (stack overflow) without crashing.");
3 function runTest() {
4 var input = document.createElement("input");
5 input.type = "email";
7 function repeatedlySet(r) {
8 // Consume stack until failure.
9 input.value = r;
10 repeatedlySet(r);
12 repeatedlySet("an@example.com");
14 shouldThrow("runTest()");