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

Unified Diff: src/preparser.h

Issue 1425723004: Properly handle parsing a '%'-prefixed runtime call as a binding pattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-552302.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 90c3af1be39363248eff03cc046eb66af2be9289..17f55b9e385acc33c8819eba859b1800781e8ccb 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -2404,6 +2404,7 @@ ParserBase<Traits>::ParsePrimaryExpression(ExpressionClassifier* classifier,
case Token::MOD:
if (allow_natives() || extension_ != NULL) {
+ BindingPatternUnexpectedToken(classifier);
return this->ParseV8Intrinsic(ok);
}
break;
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-552302.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698