Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 301bda94c4011987aff1a704a5f2e6f84d79c137..e3e561a31856c1329d998663063e11100ca04db6 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3693,7 +3693,7 @@ Statement* Parser::ParseForStatement(ZoneList<const AstRawString*>* labels, |
if (!*ok) return nullptr; |
expression = this->CheckAndRewriteReferenceExpression( |
expression, lhs_beg_pos, lhs_end_pos, |
- MessageTemplate::kInvalidLhsInFor, CHECK_OK); |
+ MessageTemplate::kInvalidLhsInFor, kSyntaxError, CHECK_OK); |
ForEachStatement* loop = |
factory()->NewForEachStatement(mode, labels, stmt_pos); |