Index: src/parsing/scanner.cc |
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc |
index 698cb5e9058b66df6228257768b69db5ff33268c..faec88b8a4bfb5ff37bf8dad58fefc32cd8ff03f 100644 |
--- a/src/parsing/scanner.cc |
+++ b/src/parsing/scanner.cc |
@@ -1135,6 +1135,8 @@ uc32 Scanner::ScanUnicodeEscape() { |
// Keyword Matcher |
#define KEYWORDS(KEYWORD_GROUP, KEYWORD) \ |
+ KEYWORD_GROUP('a') \ |
+ KEYWORD("await", Token::AWAIT) \ |
KEYWORD_GROUP('b') \ |
KEYWORD("break", Token::BREAK) \ |
KEYWORD_GROUP('c') \ |
@@ -1150,7 +1152,7 @@ uc32 Scanner::ScanUnicodeEscape() { |
KEYWORD("do", Token::DO) \ |
KEYWORD_GROUP('e') \ |
KEYWORD("else", Token::ELSE) \ |
- KEYWORD("enum", Token::FUTURE_RESERVED_WORD) \ |
+ KEYWORD("enum", Token::ENUM) \ |
KEYWORD("export", Token::EXPORT) \ |
KEYWORD("extends", Token::EXTENDS) \ |
KEYWORD_GROUP('f') \ |
@@ -1196,7 +1198,6 @@ uc32 Scanner::ScanUnicodeEscape() { |
KEYWORD_GROUP('y') \ |
KEYWORD("yield", Token::YIELD) |
- |
static Token::Value KeywordOrIdentifierToken(const uint8_t* input, |
int input_length, bool escaped) { |
DCHECK(input_length >= 1); |