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());
Hi,
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++
and then calling the callback
this all works fine ( no arguments provided with the callback ).
So I am trying to figure out how I can provide an argument to that callback, from c++ into js, that would allow storing another callback.
The text was updated successfully, but these errors were encountered: