From e5395a9cdb020d50cd60e4ae342c17a520ca616d Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sat, 28 Apr 2018 21:54:21 -0400 Subject: [PATCH] n-api: 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 --- doc/api/n-api.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index adb8647b399ecd..92340cf834e3f0 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -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