diff options
author | himself65 <himself65@outlook.com> | 2019-10-17 09:13:57 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-01-12 05:50:28 +0300 |
commit | 6219f1fb447042106177efcb61e75b6e89bd0e03 (patch) | |
tree | 454853ffac3a0b01daf868fc38f4e048c9e4c3a0 /src/js_native_api_types.h | |
parent | 57351b628cae6167f03c0417a5e2334da574a743 (diff) |
n-api: add napi_get_all_property_names
Co-Authored-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: https://github.com/nodejs/node/pull/30006
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/js_native_api_types.h')
-rw-r--r-- | src/js_native_api_types.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h index a81e76a6493..ef44dd457db 100644 --- a/src/js_native_api_types.h +++ b/src/js_native_api_types.h @@ -115,4 +115,25 @@ typedef struct { napi_status error_code; } napi_extended_error_info; +#ifdef NAPI_EXPERIMENTAL +typedef enum { + napi_key_include_prototypes, + napi_key_own_only +} napi_key_collection_mode; + +typedef enum { + napi_key_all_properties = 0, + napi_key_writable = 1, + napi_key_enumerable = 1 << 1, + napi_key_configurable = 1 << 2, + napi_key_skip_strings = 1 << 3, + napi_key_skip_symbols = 1 << 4 +} napi_key_filter; + +typedef enum { + napi_key_keep_numbers, + napi_key_numbers_to_strings +} napi_key_conversion; +#endif + #endif // SRC_JS_NATIVE_API_TYPES_H_ |