Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index aff7f48513a26e01cbc513fe9bc70ad2c106154d..65e29aa220c7e1c8a92c070f604d0a1698ce30e8 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -1666,6 +1666,11 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript( |
| info.PrepareForSerializing(); |
| } |
| + bool ignore = script_name.is_null() || |
|
vogelheim
2016/03/15 18:22:59
This is... strange.
Should this alternatively go
jochen (gone - plz use gerrit)
2016/03/15 18:36:08
the embedder should tell us whether or not to igno
|
| + (script_name->IsString() && |
| + Handle<String>::cast(script_name)->length() == 0); |
| + parse_info.set_ignore_html_comments(ignore); |
| + |
| parse_info.set_language_mode( |
| static_cast<LanguageMode>(info.language_mode() | language_mode)); |
| result = CompileToplevel(&info); |