Index: mojo/public/bindings/js/support.cc |
diff --git a/mojo/public/bindings/js/support.cc b/mojo/public/bindings/js/support.cc |
index 1290e87c4275488a7eec12420b048e5a59fbd273..7430bfce810b1fbca178487b8bd913c659f8da7e 100644 |
--- a/mojo/public/bindings/js/support.cc |
+++ b/mojo/public/bindings/js/support.cc |
@@ -64,10 +64,10 @@ v8::Local<v8::ObjectTemplate> Support::GetTemplate(v8::Isolate* isolate) { |
if (templ.IsEmpty()) { |
WaitingCallback::EnsureRegistered(isolate); |
- templ = v8::ObjectTemplate::New(); |
+ templ = v8::ObjectTemplate::New(isolate); |
templ->Set(gin::StringToSymbol(isolate, "asyncWait"), |
- v8::FunctionTemplate::New(AsyncWait)); |
+ v8::FunctionTemplate::New(isolate, AsyncWait)); |
templ->Set(gin::StringToSymbol(isolate, "cancelWait"), |
gin::CreateFunctionTemplate(isolate, base::Bind(CancelWait))); |