diff --git a/atom/browser/net/js_asker.cc b/atom/browser/net/js_asker.cc index bbaf093eb250..487033d156b0 100644 --- a/atom/browser/net/js_asker.cc +++ b/atom/browser/net/js_asker.cc @@ -65,7 +65,8 @@ v8::Local BindFunctionWith(v8::Isolate* isolate, v8::Local bind_func = v8::Local::Cast(bind.ToLocalChecked()); std::vector> converted = { - func, mate::ConvertToV8(isolate, args)..., + v8::Local::Cast(func), + mate::ConvertToV8(isolate, args)..., }; return bind_func->Call( context, func, converted.size(), &converted.front()).ToLocalChecked();