Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 9e72422eb7deb1c28f824ac86937068d2eb5ddbe..11108a1d149b26c225c0cec352fa4a19c37789ba 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -180,11 +180,11 @@ PreParser::Statement PreParser::ParseStatementListItem(bool* ok) { |
case Token::CLASS: |
return ParseClassDeclaration(ok); |
case Token::CONST: |
- return ParseVariableStatement(kSourceElement, ok); |
+ return ParseVariableStatement(kStatementListItem, ok); |
case Token::LET: |
DCHECK(allow_harmony_scoping()); |
if (is_strict(language_mode())) { |
- return ParseVariableStatement(kSourceElement, ok); |
+ return ParseVariableStatement(kStatementListItem, ok); |
} |
// Fall through. |
default: |