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

Unified Diff: src/parsing/parser-base.h

Issue 2695973003: ParserBase should accept ESCAPED_STRICT_RESERVED_WORD as an identifier (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | test/mjsunit/regress/regress-v8-5692.js » ('j') | test/mjsunit/regress/regress-v8-5692.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index acea162a003c06bbe58299b2bbdb3e079d46ecd0..c2c1fe1b1a343515c2acd0745d3b7c65dba6965e 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -811,6 +811,7 @@ class ParserBase {
bool is_any_identifier(Token::Value token) {
return token == Token::IDENTIFIER || token == Token::ENUM ||
token == Token::AWAIT || token == Token::ASYNC ||
+ token == Token::ESCAPED_STRICT_RESERVED_WORD ||
token == Token::FUTURE_STRICT_RESERVED_WORD || token == Token::LET ||
token == Token::STATIC || token == Token::YIELD;
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-v8-5692.js » ('j') | test/mjsunit/regress/regress-v8-5692.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698