Index: src/parsing/scanner.cc |
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc |
index 19fab9355e0b105aa666d86ded78dc362e91ee83..79e431f2e1e97c4538a521d0c11665a0ca72348a 100644 |
--- a/src/parsing/scanner.cc |
+++ b/src/parsing/scanner.cc |
@@ -1206,7 +1206,9 @@ static Token::Value KeywordOrIdentifierToken(const uint8_t* input, |
(keyword_length <= 8 || input[8] == keyword[8]) && \ |
(keyword_length <= 9 || input[9] == keyword[9])) { \ |
if (escaped) { \ |
- return token == Token::FUTURE_STRICT_RESERVED_WORD \ |
+ /* TODO(adamk): YIELD should be handled specially. */ \ |
+ return (token == Token::FUTURE_STRICT_RESERVED_WORD || \ |
+ token == Token::LET || token == Token::STATIC) \ |
? Token::ESCAPED_STRICT_RESERVED_WORD \ |
: Token::ESCAPED_KEYWORD; \ |
} \ |