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

Unified Diff: src/preparser.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits Created 5 years, 9 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
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index 5a6a094f6af52b7ba025e9d4ff9c0450499497f7..1bc7777fc9b94dfccdac42bf1de82f6f9552f12f 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -1043,7 +1043,10 @@ PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) {
}
// Allow "eval" or "arguments" for backward compatibility.
ParseIdentifier(kAllowEvalOrArguments, CHECK_OK);
- ParseArguments(ok);
+ Scanner::Location spread_pos;
+ ParseArguments(&spread_pos, ok);
+
+ DCHECK(!spread_pos.IsValid());
return Expression::Default();
}

Powered by Google App Engine
This is Rietveld 408576698