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

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

Issue 1891453005: [parser] Relex restriction on reserved words (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/cctest/test-parsing.cc » ('j') | test/cctest/test-parsing.cc » ('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 46689d54c02bcb645cc658ef7481349764a85c5a..4b725ada226cbf7e807f39c403922d9781b96512 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -2774,6 +2774,8 @@ bool ParserBase<Traits>::IsNextLetKeyword() {
case Token::LET: // Yes, you can do let let = ... in sloppy mode
Dan Ehrenberg 2016/04/20 20:59:56 Actually, this comment reflects a previous misunde
mike3 2016/04/21 19:51:20 No worries; I'll remove this line while I'm at it.
case Token::YIELD:
return true;
+ case Token::FUTURE_STRICT_RESERVED_WORD:
+ return is_sloppy(language_mode());
default:
return false;
}
« no previous file with comments | « no previous file | test/cctest/test-parsing.cc » ('j') | test/cctest/test-parsing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698