Chromium Code Reviews| 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 { |