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

Unified Diff: src/expression-classifier.h

Issue 1409613003: Fix let pattern error accumulation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/message/let-lexical-name-in-array-prohibited.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/expression-classifier.h
diff --git a/src/expression-classifier.h b/src/expression-classifier.h
index bd9ba7064b62f12c10ccad3652e3d1116c4e558d..7392a7add8bd3c6ff63a8aba043c66cbfdb52ce8 100644
--- a/src/expression-classifier.h
+++ b/src/expression-classifier.h
@@ -264,6 +264,8 @@ class ExpressionClassifier {
if (errors & StrongModeFormalParametersProduction)
strong_mode_formal_parameter_error_ =
inner.strong_mode_formal_parameter_error_;
+ if (errors & LetPatternProduction)
+ let_pattern_error_ = inner.let_pattern_error_;
}
// As an exception to the above, the result continues to be a valid arrow
« no previous file with comments | « no previous file | test/message/let-lexical-name-in-array-prohibited.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698