Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 2978cdda987478361601409b2756c1168fa0dc3e..9fd6e23d3aa59cdd830aedf044641e675852a77c 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -50,6 +50,8 @@ PreParserIdentifier PreParserTraits::GetSymbol(Scanner* scanner) { |
return PreParserIdentifier::FutureStrictReserved(); |
} else if (scanner->current_token() == Token::LET) { |
return PreParserIdentifier::Let(); |
+ } else if (scanner->current_token() == Token::STATIC) { |
+ return PreParserIdentifier::Static(); |
} else if (scanner->current_token() == Token::YIELD) { |
return PreParserIdentifier::Yield(); |
} |
@@ -491,8 +493,7 @@ PreParser::Statement PreParser::ParseExpressionOrLabelledStatement(bool* ok) { |
// identifier. |
DCHECK(!expr.AsIdentifier().IsFutureReserved()); |
DCHECK(strict_mode() == SLOPPY || |
- (!expr.AsIdentifier().IsFutureStrictReserved() && |
- !expr.AsIdentifier().IsYield())); |
+ !IsFutureStrictReserved(expr.AsIdentifier())); |
Consume(Token::COLON); |
return ParseStatement(ok); |
// Preparsing is disabled for extensions (because the extension details |