Index: mojo/public/bindings/js/waiting_callback.cc |
diff --git a/mojo/public/bindings/js/waiting_callback.cc b/mojo/public/bindings/js/waiting_callback.cc |
index 5da2f3ce4b6fd9c90ea5d6df9523776aa4000ed8..f9d209b13472eceebdfff1d004291e4e81f58b52 100644 |
--- a/mojo/public/bindings/js/waiting_callback.cc |
+++ b/mojo/public/bindings/js/waiting_callback.cc |
@@ -45,7 +45,7 @@ void WaitingCallback::EnsureRegistered(v8::Isolate* isolate) { |
gin::PerIsolateData* data = gin::PerIsolateData::From(isolate); |
if (!data->GetObjectTemplate(&kWrapperInfo).IsEmpty()) |
return; |
- v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); |
+ v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate); |
templ->SetInternalFieldCount(gin::kNumberOfInternalFields); |
data->SetObjectTemplate(&kWrapperInfo, templ); |
} |