-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Description
At
Line 257 in bcfb176
void (*fun)(void* arg, void(* cb)(void*), void* cbarg), |
cbarg
is a pointer passing from the core into the add-on. The core expects that it will be passed back into the core as the first parameter to cb
. There is no guarantee that add-on authors will faithfully pass it back as expected.
We should create a wrapper that retains cbarg
in the implementation, making it possible to give a function `void (*cb)() to the add-on.
himself65
Metadata
Metadata
Assignees
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.