| Index: gin/modules/module_registry.cc
|
| diff --git a/gin/modules/module_registry.cc b/gin/modules/module_registry.cc
|
| index 035c25957685e4fe22b98cf797df53a82ca821a1..eda34880e7149e9b71c6c38069448da29f37f753 100644
|
| --- a/gin/modules/module_registry.cc
|
| +++ b/gin/modules/module_registry.cc
|
| @@ -123,11 +123,10 @@ ModuleRegistry* ModuleRegistry::From(v8::Handle<Context> context) {
|
| return static_cast<ModuleRegistry*>(external->Value());
|
| }
|
|
|
| -void ModuleRegistry::AddBuiltinModule(Isolate* isolate,
|
| - const std::string& id,
|
| - v8::Handle<ObjectTemplate> templ) {
|
| +void ModuleRegistry::AddBuiltinModule(Isolate* isolate, const std::string& id,
|
| + v8::Handle<Value> module) {
|
| DCHECK(!id.empty());
|
| - RegisterModule(isolate, id, templ->NewInstance());
|
| + RegisterModule(isolate, id, module);
|
| }
|
|
|
| void ModuleRegistry::AddPendingModule(Isolate* isolate,
|
|
|