Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: src/token.h

Issue 1429983002: [es6] early error when Identifier is an escaped reserved word (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/token.h
diff --git a/src/token.h b/src/token.h
index 2443e842386a04b9c6a8f11d1b4f6336ab6314c7..fea15e32aeb2e618912a077d2b8b0e3abf080e82 100644
--- a/src/token.h
+++ b/src/token.h
@@ -163,6 +163,8 @@ namespace internal {
\
/* Illegal token - not able to scan. */ \
T(ILLEGAL, "ILLEGAL", 0) \
+ T(ESCAPED_KEYWORD, NULL, 0) \
+ T(ESCAPED_STRICT_RESERVED_WORD, NULL, 0) \
\
/* Scanner-internal use only. */ \
T(WHITESPACE, NULL, 0) \
@@ -200,6 +202,7 @@ class Token {
switch (tok) {
case IDENTIFIER:
return true;
+ case ESCAPED_STRICT_RESERVED_WORD:
case FUTURE_STRICT_RESERVED_WORD:
case LET:
case STATIC:

Powered by Google App Engine
This is Rietveld 408576698