Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 description("This tests that ScriptRegexp matching fails when running into an ex ceptional condition (stack overflow) without crashing."); | |
| 2 | |
| 3 function runTest() { | |
| 4 var input = document.createElement("input"); | |
| 5 input.type = "email"; | |
| 6 | |
| 7 function repeatedlySet(r) { | |
| 8 // Consume stack until failure. | |
| 9 input.value = r; | |
| 10 repeatedlySet(r); | |
| 11 } | |
| 12 repeatedlySet("an@example.com"); | |
| 13 } | |
| 14 shouldThrow("runTest()"); | |
| OLD | NEW |