-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Documentation mismatch for N-API structures #13469
Comments
/cc @nodejs/n-api |
@mscdex Right, thanks, forgot I can add labels and mention corresponding group myself... |
Yes, the documentation is out of date. These changes were made in the code after that part of the documentation was originally written, and we forgot to update the doc. |
Will take a look at updating this tomorrow. |
Moved to a separate issue: #13555 |
PR-URL: #13508 Fixes: #13469 Fixes: #13458 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
PR-URL: nodejs#13508 Fixes: nodejs#13469 Fixes: nodejs#13458 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
Backport-PR-URL: #19447 PR-URL: #13508 Fixes: #13469 Fixes: #13458 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
Documentation on the N-API page describes
napi_property_attributes
as following:whereas src/node_api_types.h describes it as:
Basically, values of all bit flags were inverted.
Given the last commit, it seems it's the documentation that is outdated here but would be nice to confirm and sync two places to agree with each other.
Another one is
napi_property_descriptor
- website docs don't mention secondname
field of typenapi_value
.The text was updated successfully, but these errors were encountered: