Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-07-03 22:06:46 +0300
committercjihrig <cjihrig@gmail.com>2017-07-06 22:25:30 +0300
commit9c6804c1dff0203751dd01da4e226e19de636a71 (patch)
tree094482a716eb83d81a56658e2725e947a9b15f07 /src/node_api.h
parent29df1a87fa230bc86f460620173b9fedd2919f68 (diff)
n-api: add napi_has_own_property()
Refs: https://github.com/nodejs/node/issues/13925 PR-URL: https://github.com/nodejs/node/pull/14063 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r--src/node_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_api.h b/src/node_api.h
index 503ea258881..e346b762dd2 100644
--- a/src/node_api.h
+++ b/src/node_api.h
@@ -230,6 +230,10 @@ NAPI_EXTERN napi_status napi_delete_property(napi_env env,
napi_value object,
napi_value key,
bool* result);
+NAPI_EXTERN napi_status napi_has_own_property(napi_env env,
+ napi_value object,
+ napi_value key,
+ bool* result);
NAPI_EXTERN napi_status napi_set_named_property(napi_env env,
napi_value object,
const char* utf8name,