You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a C++ library with an API call which will take in a callback.
That callback will return a reference to another callback that is to be set while in the first callback.
I'm trying to find a way to do this.
Assigning the first callback is straightforward from js to c++
Nan::MaybeLocal<v8::Function> function_ = Nan::To<v8::Function>(info[0]);
Nan::Callback* callback_ = new Nan::Callback(function_.ToLocalChecked());
Activity