Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 4b86d78597d3c791d0bbdd7fcebbab38b69acf17..af84cd07aac8f7e663c73f94a9b85947c1910fb4 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -477,19 +477,12 @@ PreParser::Statement PreParser::ParseClassDeclaration(bool* ok) { |
PreParser::Statement PreParser::ParseBlock(bool* ok) { |
// Block :: |
- // '{' Statement* '}' |
+ // '{' StatementList '}' |
- // Note that a Block does not introduce a new execution scope! |
- // (ECMA-262, 3rd, 12.2) |
- // |
Expect(Token::LBRACE, CHECK_OK); |
Statement final = Statement::Default(); |
while (peek() != Token::RBRACE) { |
- if (is_strict(language_mode()) || allow_harmony_sloppy()) { |
- final = ParseStatementListItem(CHECK_OK); |
- } else { |
- final = ParseStatement(CHECK_OK); |
- } |
+ final = ParseStatementListItem(CHECK_OK); |
} |
Expect(Token::RBRACE, ok); |
return final; |