-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Call and MakeCallback that accept cargs as agruments #344
Conversation
Looks good, but the 2 methods need to be added to the doc as well. |
Ok added the requested documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few typos in the commit message as well.
doc/function_reference.md
Outdated
@@ -148,6 +148,23 @@ arguments of the referenced function. | |||
Returns a `Napi::Value` representing the JavaScript object returned by the referenced | |||
function. | |||
|
|||
### Call | |||
|
|||
Calls a referenced Javascript function from a native add-on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: JavaScript is used with different cases in the file.
doc/function_reference.md
Outdated
``` | ||
|
||
- `[in] recv`: The `this` object passed to the referenced function when it's called. | ||
- `[in] argc`: The number of the arguments passed to the referenced function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: The number of arguments
@thefourtheye Fixed typos for the the methods added in this PR. I will provide to fix the remaining typos in this PR #335 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR-URL: #344 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Landed as 97c4ab5 |
PR-URL: nodejs/node-addon-api#344 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node-addon-api#344 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node-addon-api#344 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node-addon-api#344 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Added methods to
Napi::FunctionReference
like requested and discussed on the issue #320Below I report the added methods: