We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Function napi_create_range_error in documentation has prototype:
NODE_EXTERN napi_status napi_create_range_error(napi_env env, napi_value code, const char* msg, napi_value* result);
where msg has type const char*. But according to node_api.h the prototype should be:
msg
const char*
node_api.h
NAPI_EXTERN napi_status napi_create_range_error(napi_env env, napi_value code, napi_value msg, napi_value* result);
with msg having type napi_value.
napi_value
The text was updated successfully, but these errors were encountered:
Fixing.
Sorry, something went wrong.
doc: fix signature for napi_create_range_error
0a091fb
Fixes: nodejs#20623
PR with fix, #20641
@primeare thanks for reporting, I also fixed NODE_EXTERN->NAPI_EXTERN throughout the doc
@mhdawson if fixed, can this issue be closed ? Thanks.
7dcfe72
f263340
Fixes: #20623 PR-URL: #20641 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
No branches or pull requests
Function napi_create_range_error in documentation has prototype:
where
msg
has typeconst char*
. But according tonode_api.h
the prototype should be:with
msg
having typenapi_value
.The text was updated successfully, but these errors were encountered: