mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: refine napi_get_property_names() doc
Document that only enumerable, string-keyed properties are returned. Fixes: https://github.com/nodejs/abi-stable-node/issues/307 PR-URL: https://github.com/nodejs/node/pull/20427 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
1 parent
b61ae7fe09
commit
d7557e111e
1 file changed
+3
-1
+3
-1
@@ -2520,7 +2520,9 @@ and [`napi_get_element`][].
|
||||
|
||||
Returns `napi_ok` if the API succeeded.
|
||||
|
||||
This API returns the array of properties for the `Object` passed in.
|
||||
This API returns the names of the enumerable properties of `object` as an array
|
||||
of strings. The properties of `object` whose key is a symbol will not be
|
||||
included.
|
||||
|
||||
#### napi_set_property
|
||||
<!-- YAML
|
||||
|
||||
Reference in new issue
Block a user