]> khamidou — GitHub mirrors - electron.git/commitdiff
Try work around VS's bug
authorCheng Zhao <zcbenz@gmail.com>
Wed, 12 Aug 2015 15:07:15 +0000 (23:07 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 12 Aug 2015 15:07:15 +0000 (23:07 +0800)
atom/browser/net/js_asker.cc

index bbaf093eb250761f842f074c1de69b4b87e1027a..487033d156b09e0b403023a909c4e1b4c84b1a64 100644 (file)
@@ -65,7 +65,8 @@ v8::Local<v8::Value> BindFunctionWith(v8::Isolate* isolate,
   v8::Local<v8::Function> bind_func =
       v8::Local<v8::Function>::Cast(bind.ToLocalChecked());
   std::vector<v8::Local<v8::Value>> converted = {
-      func, mate::ConvertToV8(isolate, args)...,
+    v8::Local<v8::Value>::Cast(func),
+    mate::ConvertToV8(isolate, args)...,
   };
   return bind_func->Call(
       context, func, converted.size(), &converted.front()).ToLocalChecked();