Index: mojo/apps/js/bindings/gl/module.cc |
diff --git a/mojo/apps/js/bindings/gl/module.cc b/mojo/apps/js/bindings/gl/module.cc |
index adf5ac3342cb1b1ee093d55c60999df85274c979..2c67ac10c76e5fc67af2ef6f35526f03bc256123 100644 |
--- a/mojo/apps/js/bindings/gl/module.cc |
+++ b/mojo/apps/js/bindings/gl/module.cc |
@@ -31,7 +31,7 @@ gin::Handle<Context> CreateContext(const gin::Arguments& args, uint64_t encoded, |
} // namespace |
-v8::Local<v8::ObjectTemplate> GetModuleTemplate(v8::Isolate* isolate) { |
+v8::Local<v8::Value> GetModule(v8::Isolate* isolate) { |
gin::PerIsolateData* data = gin::PerIsolateData::From(isolate); |
v8::Local<v8::ObjectTemplate> templ = data->GetObjectTemplate(&kWrapperInfo); |
@@ -42,7 +42,7 @@ v8::Local<v8::ObjectTemplate> GetModuleTemplate(v8::Isolate* isolate) { |
data->SetObjectTemplate(&kWrapperInfo, templ); |
} |
- return templ; |
+ return templ->NewInstance(); |
} |
} // namespace gl |