Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index e197494e6b56176b101af20f5cbb48e0c1da39fd..6dd5a8bbf67a4711f9f36775ec46a52d5cffc066 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1510,19 +1510,6 @@ Handle<JSObject> Factory::NewJSObjectWithNullProto() { |
return result; |
} |
-Handle<JSModule> Factory::NewJSModule(Handle<Context> context, |
- Handle<ScopeInfo> scope_info) { |
- // Allocate a fresh map. Modules do not have a prototype. |
- Handle<Map> map = NewMap(JS_MODULE_TYPE, JSModule::kSize); |
- // Allocate the object based on the map. |
- Handle<JSModule> module = |
- Handle<JSModule>::cast(NewJSObjectFromMap(map, TENURED)); |
- module->set_context(*context); |
- module->set_scope_info(*scope_info); |
- return module; |
-} |
- |
- |
Handle<JSGlobalObject> Factory::NewJSGlobalObject( |
Handle<JSFunction> constructor) { |
DCHECK(constructor->has_initial_map()); |