| Index: LayoutTests/fast/js/script-tests/regexp-match-exception.js
|
| diff --git a/LayoutTests/fast/js/script-tests/regexp-match-exception.js b/LayoutTests/fast/js/script-tests/regexp-match-exception.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..75cd22dd83c73a70c3f4ae8dd9f67da06df48140
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/js/script-tests/regexp-match-exception.js
|
| @@ -0,0 +1,14 @@
|
| +description("This tests that ScriptRegexp matching fails when running into an exceptional condition (stack overflow) without crashing.");
|
| +
|
| +function runTest() {
|
| + var input = document.createElement("input");
|
| + input.type = "email";
|
| +
|
| + function repeatedlySet(r) {
|
| + // Consume stack until failure.
|
| + input.value = r;
|
| + repeatedlySet(r);
|
| + }
|
| + repeatedlySet("an@example.com");
|
| +}
|
| +shouldThrow("runTest()");
|
|
|