Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 2522803786e917e9a8cb3f1b066cd5509869d756..1c31840a55c1077b583c67a4db3d62d3a438c7cd 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1705,9 +1705,11 @@ Handle<JSGeneratorObject> Factory::NewJSGeneratorObject( |
JSGeneratorObject); |
} |
-Handle<Module> Factory::NewModule(int min_size) { |
- Handle<Module> module = Handle<Module>::cast(NewStruct(MODULE_TYPE)); |
+Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code, |
+ int min_size) { |
Handle<ObjectHashTable> exports = ObjectHashTable::New(isolate(), min_size); |
+ Handle<Module> module = Handle<Module>::cast(NewStruct(MODULE_TYPE)); |
+ module->set_code(*code); |
module->set_exports(*exports); |
return module; |
} |