Fix deprecated node::MakeCallback call

This commit is contained in:
Cheng Zhao 2017-08-28 16:17:33 +09:00
parent 593ae7bf0e
commit b2f3625eaa

View file

@ -21,7 +21,7 @@ v8::Local<v8::Value> 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