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

Unified Diff: src/messages.h

Issue 2694003002: Raise SyntaxError on let [ starting an ExpressionStatement (Closed)
Patch Set: Only cover the ExpressionStatement case Created 3 years, 10 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 | src/parsing/parser-base.h » ('j') | test/mjsunit/invalid-source-element.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index 433d04469d28c5791050bc579da8a194d1f8a9d4..5c8f71a1fd5ce789da119488b4e99bedec61042f 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -638,6 +638,7 @@ class ErrorUtils : public AllStatic {
T(UnexpectedTokenNumber, "Unexpected number") \
T(UnexpectedTokenString, "Unexpected string") \
T(UnexpectedTokenRegExp, "Unexpected regular expression") \
+ T(UnexpectedTokenLetLBrack, "Unexpected token sequence let [") \
Dan Ehrenberg 2017/02/16 09:16:51 From a user's perspective, the error they made was
vabr (Chromium) 2017/02/16 17:09:33 Thanks, that's a great point. I adopted the messag
T(UnknownLabel, "Undefined label '%'") \
T(UnresolvableExport, \
"The requested module does not provide an export named '%'") \
« no previous file with comments | « no previous file | src/parsing/parser-base.h » ('j') | test/mjsunit/invalid-source-element.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698