From b2f3625eaa422e6c9e62333871b7ef21cb94ef30 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 28 Aug 2017 16:17:33 +0900 Subject: [PATCH] Fix deprecated node::MakeCallback call --- atom/common/api/event_emitter_caller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/common/api/event_emitter_caller.cc b/atom/common/api/event_emitter_caller.cc index bf60834a9b68..50d586680d50 100644 --- a/atom/common/api/event_emitter_caller.cc +++ b/atom/common/api/event_emitter_caller.cc @@ -21,7 +21,7 @@ v8::Local CallMethodWithArgs(v8::Isolate* isolate, // Use node::MakeCallback to call the callback, and it will also run pending // tasks in Node.js. return node::MakeCallback(isolate, obj, method, args->size(), &args->front(), - 0, 0).ToLocalChecked(); + {0, 0}).ToLocalChecked(); } } // namespace internal