| Index: mojo/public/bindings/js/core.cc
|
| diff --git a/mojo/public/bindings/js/core.cc b/mojo/public/bindings/js/core.cc
|
| index cb6a12ca7380c21c266e0d1bff5be81816720281..5ca062c7906caab47a704ca5b4b6fda894c0d297 100644
|
| --- a/mojo/public/bindings/js/core.cc
|
| +++ b/mojo/public/bindings/js/core.cc
|
| @@ -56,7 +56,8 @@ gin::Dictionary ReadMessage(const gin::Arguments& args, MojoHandle handle,
|
| return dictionary;
|
| }
|
|
|
| - v8::Handle<v8::ArrayBuffer> array_buffer = v8::ArrayBuffer::New(num_bytes);
|
| + v8::Handle<v8::ArrayBuffer> array_buffer =
|
| + v8::ArrayBuffer::New(args.isolate(), num_bytes);
|
| std::vector<MojoHandle> handles(num_handles);
|
|
|
| gin::ArrayBuffer buffer;
|
| @@ -92,7 +93,7 @@ v8::Local<v8::ObjectTemplate> Core::GetTemplate(v8::Isolate* isolate) {
|
| &g_wrapper_info);
|
|
|
| if (templ.IsEmpty()) {
|
| - templ = v8::ObjectTemplate::New();
|
| + templ = v8::ObjectTemplate::New(isolate);
|
|
|
| templ->Set(gin::StringToSymbol(isolate, "close"),
|
| gin::CreateFunctionTemplate(isolate,
|
|
|