Index: src/token.h |
diff --git a/src/token.h b/src/token.h |
index 2443e842386a04b9c6a8f11d1b4f6336ab6314c7..119a682a25d008cddf8ab951f1b47adf32117873 100644 |
--- a/src/token.h |
+++ b/src/token.h |
@@ -161,6 +161,9 @@ namespace internal { |
K(YIELD, "yield", 0) \ |
K(SUPER, "super", 0) \ |
\ |
+ /* Async await */ \ |
+ K(ASYNC, "async", 0) \ |
+ \ |
/* Illegal token - not able to scan. */ \ |
T(ILLEGAL, "ILLEGAL", 0) \ |
\ |
@@ -199,6 +202,7 @@ class Token { |
bool is_generator) { |
switch (tok) { |
case IDENTIFIER: |
+ case ASYNC: |
return true; |
case FUTURE_STRICT_RESERVED_WORD: |
case LET: |