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

Unified Diff: src/scanner.cc

Issue 885243002: Implement parsing of ES6 Rest Parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/preparser.cc ('k') | src/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.cc
diff --git a/src/scanner.cc b/src/scanner.cc
index d499e9b996dbbf0e8c348e49b0ecb678431fbb13..ea8586ed263b7b8da4fffc6a7287c8282859be61 100644
--- a/src/scanner.cc
+++ b/src/scanner.cc
@@ -599,6 +599,15 @@ void Scanner::Scan() {
token = ScanNumber(true);
} else {
token = Token::PERIOD;
+ if (c0_ == '.') {
arv (Not doing code reviews) 2015/01/30 05:28:13 With this we change the error message in the follo
marja 2015/01/30 08:33:31 Maybe that's a reason to at least check the harmon
+ Advance();
+ if (c0_ == '.') {
+ Advance();
+ token = Token::ELLIPSIS;
+ } else {
+ PushBack('.');
+ }
+ }
}
break;
« no previous file with comments | « src/preparser.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698