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
{{ message }}
Repository navigation
Documentation mismatch for N-API structures #13469
typedefenum {
napi_default=0,
napi_writable=1 << 0,
napi_enumerable=1 << 1,
napi_configurable=1 << 2,
// Used with napi_define_class to distinguish static properties// from instance properties. Ignored by napi_define_properties.napi_static=1 << 10,
} napi_property_attributes;
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 second name field of type napi_value.
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.
Another one: napi_create_symbol expects a char * for description according to docs, but napi_value in actual header file. Not sure which one is intended here (I would expect the char *)?
Activity
mscdex commentedon Jun 5, 2017
/cc @nodejs/n-api
RReverser commentedon Jun 5, 2017
@mscdex Right, thanks, forgot I can add labels and mention corresponding group myself...
jasongin commentedon Jun 5, 2017
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.
mhdawson commentedon Jun 5, 2017
Will take a look at updating this tomorrow.
doc: fix out of date sections in n-api doc
RReverser commentedon Jun 8, 2017
Another one:napi_create_symbolexpects achar *fordescriptionaccording to docs, butnapi_valuein actual header file. Not sure which one is intended here (I would expect thechar *)?Moved to a separate issue: #13555
Fix napi_create_symbol according to headers
doc: fix out of date sections in n-api doc
doc: fix out of date sections in n-api doc
doc: fix out of date sections in n-api doc