From d7557e111e5d94443aa88d8e2a35a896bea5dc03 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sat, 28 Apr 2018 21:54:21 -0400 Subject: [PATCH] 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 Reviewed-By: Michael Dawson Reviewed-By: Vse Mozhet Byt --- 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 adb8647b399..92340cf834e 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