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

Unified Diff: src/parser.cc

Issue 18654: Fix bug in RegExp parser. (Closed)
Patch Set: Added more tests. Created 11 years, 11 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/regexp.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 c8dbb36717594fba97c4967e450681a519de512a..9e7b4b311ecd6ab3888ea9e73dff68c350652759 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -4052,6 +4052,7 @@ uc32 RegExpParser::ParseClassCharacterEscape() {
Advance();
return '\v';
case 'c':
+ Advance();
return ParseControlLetterEscape();
case '0': case '1': case '2': case '3': case '4': case '5':
case '6': case '7':
« no previous file with comments | « no previous file | test/mjsunit/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698