Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 055777af77db2118a08e06d68cb7e798535dc4e6..5eef4e8e943d866238077696dc7e0e0c561955d7 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1522,16 +1522,12 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript( |
if (!source_map_url.is_null()) { |
script->set_source_mapping_url(*source_map_url); |
} |
+ script->set_is_module(is_module); |
// Compile the function and add it to the cache. |
Zone zone(isolate->allocator()); |
ParseInfo parse_info(&zone, script); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
- if (is_module) { |
- parse_info.set_module(); |
- } else { |
- parse_info.set_global(); |
- } |
vogelheim
2016/06/14 15:20:49
You've moved this into the ParseInfo constructor.
mike3
2016/06/19 16:58:59
Acknowledged.
|
if (compile_options != ScriptCompiler::kNoCompileOptions) { |
parse_info.set_cached_data(cached_data); |
} |