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

Unified Diff: src/token.h

Issue 1423663006: [es7] Implement async functions parsing Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months 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
« no previous file with comments | « src/scanner.cc ('k') | test/mjsunit/harmony/async-await-functions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « src/scanner.cc ('k') | test/mjsunit/harmony/async-await-functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698