Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 21da4f80d418cb31d6d9e1c8bdbd4e3972d6be5e..c461d8a4bd2e3f5ed0084c6616a3e3d44601dada 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -1110,24 +1110,8 @@ PreParser::Expression PreParser::ParsePrimaryExpression(bool* ok) { |
break; |
} |
- case i::Token::FUTURE_RESERVED_WORD: { |
- Next(); |
- i::Scanner::Location location = scanner_->location(); |
- ReportMessageAt(location.beg_pos, location.end_pos, |
- "reserved_word", NULL); |
- *ok = false; |
- return Expression::Default(); |
- } |
- |
+ case i::Token::FUTURE_RESERVED_WORD: |
case i::Token::FUTURE_STRICT_RESERVED_WORD: |
- if (!is_classic_mode()) { |
- Next(); |
- i::Scanner::Location location = scanner_->location(); |
- ReportMessageAt(location, "strict_reserved_word", NULL); |
- *ok = false; |
- return Expression::Default(); |
- } |
- // FALLTHROUGH |
case i::Token::IDENTIFIER: { |
Identifier id = ParseIdentifier(CHECK_OK); |
result = Expression::FromIdentifier(id); |