Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index c038ca2fa7f8db18b32436554a70d920ce829e50..2d48254134585f2c5adf036e2b6645c05017a08e 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -2758,8 +2758,8 @@ Statement* Parser::ParseWithStatement(ZoneList<const AstRawString*>* labels, |
CaseClause* Parser::ParseCaseClause(bool* default_seen_ptr, bool* ok) { |
// CaseClause :: |
- // 'case' Expression ':' Statement* |
- // 'default' ':' Statement* |
+ // 'case' Expression ':' StatementList |
+ // 'default' ':' StatementList |
Expression* label = NULL; // NULL expression indicates default case |
if (peek() == Token::CASE) { |
@@ -2781,7 +2781,7 @@ CaseClause* Parser::ParseCaseClause(bool* default_seen_ptr, bool* ok) { |
while (peek() != Token::CASE && |
peek() != Token::DEFAULT && |
peek() != Token::RBRACE) { |
- Statement* stat = ParseStatement(NULL, CHECK_OK); |
+ Statement* stat = ParseStatementListItem(CHECK_OK); |
statements->Add(stat, zone()); |
} |