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

Unified Diff: test/mjsunit/regress/regress-crbug-600257.js

Issue 1884143002: [regexp] fix assertion failure when parsing close to stack overflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/regexp/regexp-parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-600257.js
diff --git a/test/mjsunit/regress/regress-crbug-595657.js b/test/mjsunit/regress/regress-crbug-600257.js
similarity index 72%
copy from test/mjsunit/regress/regress-crbug-595657.js
copy to test/mjsunit/regress/regress-crbug-600257.js
index 653259781be24ec1acf1d5e2aa4f4de2f361d3ec..87bd2e39af387cde81f9c9adb15756f8139a03a3 100644
--- a/test/mjsunit/regress/regress-crbug-595657.js
+++ b/test/mjsunit/regress/regress-crbug-600257.js
@@ -4,12 +4,10 @@
// Flags: --stack-size=100
-function test() {
+(function rec() {
try {
- test();
- } catch(e) {
- /(\2)(a)/.test("");
+ rec();
+ } catch (e) {
+ /{/;
}
-}
-
-test();
+})();
« no previous file with comments | « src/regexp/regexp-parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698