Index: src/scanner-base.cc |
diff --git a/src/scanner-base.cc b/src/scanner-base.cc |
index 1564e9876ae30ebe1df9d8770a5f4a34428428fc..16f8db5a986d398288c2449d07ee7da9422eaa80 100644 |
--- a/src/scanner-base.cc |
+++ b/src/scanner-base.cc |
@@ -799,7 +799,7 @@ KeywordMatcher::FirstState KeywordMatcher::first_states_[] = { |
{ NULL, I, Token::ILLEGAL }, |
{ NULL, UNMATCHABLE, Token::ILLEGAL }, |
{ NULL, UNMATCHABLE, Token::ILLEGAL }, |
- { "let", KEYWORD_PREFIX, Token::FUTURE_RESERVED_WORD }, |
+ { "let", KEYWORD_PREFIX, Token::FUTURE_STRICT_RESERVED_WORD }, |
{ NULL, UNMATCHABLE, Token::ILLEGAL }, |
{ NULL, N, Token::ILLEGAL }, |
{ NULL, UNMATCHABLE, Token::ILLEGAL }, |
@@ -812,7 +812,7 @@ KeywordMatcher::FirstState KeywordMatcher::first_states_[] = { |
{ NULL, V, Token::ILLEGAL }, |
{ NULL, W, Token::ILLEGAL }, |
{ NULL, UNMATCHABLE, Token::ILLEGAL }, |
- { "yield", KEYWORD_PREFIX, Token::FUTURE_RESERVED_WORD } |
+ { "yield", KEYWORD_PREFIX, Token::FUTURE_STRICT_RESERVED_WORD } |
}; |
@@ -849,7 +849,7 @@ void KeywordMatcher::Step(unibrow::uchar input) { |
case C: |
if (MatchState(input, 'a', CA)) return; |
if (MatchKeywordStart(input, "class", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
if (MatchState(input, 'o', CO)) return; |
break; |
case CA: |
@@ -875,14 +875,14 @@ void KeywordMatcher::Step(unibrow::uchar input) { |
case E: |
if (MatchKeywordStart(input, "else", 1, Token::ELSE)) return; |
if (MatchKeywordStart(input, "enum", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
if (MatchState(input, 'x', EX)) return; |
break; |
case EX: |
if (MatchKeywordStart(input, "export", 2, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
if (MatchKeywordStart(input, "extends", 2, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
break; |
case F: |
if (MatchKeywordStart(input, "false", 1, Token::FALSE_LITERAL)) return; |
@@ -900,14 +900,14 @@ void KeywordMatcher::Step(unibrow::uchar input) { |
break; |
case IMP: |
if (MatchKeywordStart(input, "implements", 3, |
- Token::FUTURE_RESERVED_WORD )) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD )) return; |
if (MatchKeywordStart(input, "import", 3, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
break; |
case IN: |
token_ = Token::IDENTIFIER; |
if (MatchKeywordStart(input, "interface", 2, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
if (MatchKeywordStart(input, "instanceof", 2, Token::INSTANCEOF)) return; |
break; |
case N: |
@@ -916,24 +916,24 @@ void KeywordMatcher::Step(unibrow::uchar input) { |
break; |
case P: |
if (MatchKeywordStart(input, "package", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
if (MatchState(input, 'r', PR)) return; |
if (MatchKeywordStart(input, "public", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
break; |
case PR: |
if (MatchKeywordStart(input, "private", 2, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
if (MatchKeywordStart(input, "protected", 2, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
break; |
case S: |
if (MatchKeywordStart(input, "static", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_STRICT_RESERVED_WORD)) return; |
if (MatchKeywordStart(input, "super", 1, |
- Token::FUTURE_RESERVED_WORD)) return; |
+ Token::FUTURE_RESERVED_WORD)) return; |
if (MatchKeywordStart(input, "switch", 1, |
- Token::SWITCH)) return; |
+ Token::SWITCH)) return; |
break; |
case T: |
if (MatchState(input, 'h', TH)) return; |