Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: LayoutTests/fast/js/script-tests/regexp-match-exception.js

Issue 300103002: ScriptRegexp::match(): gracefully fail if regexp.exec() throws. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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()");
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/regexp-match-exception-no-crash-expected.txt ('k') | Source/bindings/v8/ScriptRegexp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698