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

Unified Diff: src/parser.cc

Issue 15712006: Regexp parser: reset flag after scanning ahead for capture groups. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-2690.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 5eec342168a820c898b6978367c6830ae06140f3..a93600f960655756d89b55471004b8f45583088e 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -5130,6 +5130,7 @@ void RegExpParser::Advance() {
void RegExpParser::Reset(int pos) {
next_pos_ = pos;
+ has_more_ = (pos < in()->length());
Advance();
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-2690.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698