Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index b4964b56bfc74284369245d0d65b26fbe14ec04c..dcd38463383870966f403f72331b6774370037e7 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1929,6 +1929,7 @@ Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code) { |
module->set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue)); |
module->set_module_namespace(isolate()->heap()->undefined_value()); |
module->set_requested_modules(*requested_modules); |
+ module->set_script(Script::cast(code->script())); |
DCHECK(!module->instantiated()); |
DCHECK(!module->evaluated()); |
return module; |