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

Unified Diff: src/parsing/parser.cc

Issue 2009963002: [modules] Disable HTML-like comments Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update attribute/method name Created 4 years, 7 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 | src/parsing/scanner.h » ('j') | src/parsing/scanner.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index e31cb0934ee94de2b11da7a44b2a2f722585b034..9dddfecf589ae9a422cf2ae953e9dac67068ef1b 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -934,6 +934,7 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
bool ok = true;
int beg_pos = scanner()->location().beg_pos;
parsing_module_ = info->is_module();
+ scanner_.set_allow_html_comments(parsing_module_);
vogelheim 2016/05/27 08:08:49 Also, do we know whether Parser + Pre-Parser will
vogelheim 2016/05/27 08:08:49 So... if a file is being parsed top-to-bottom, The
if (parsing_module_) {
ParseModuleItemList(body, &ok);
} else {
« no previous file with comments | « no previous file | src/parsing/scanner.h » ('j') | src/parsing/scanner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698