From 94c1fb32a7d69d30c3f84b66ed37f16cf6c9a033 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 12 Aug 2015 23:07:15 +0800 Subject: [PATCH] Try work around VS's bug --- atom/browser/net/js_asker.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();