diff options
author | cjihrig <cjihrig@gmail.com> | 2017-06-27 13:29:58 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-06-30 17:08:51 -0400 |
commit | f803e77b1e2347dbce9d8098f3b6e231f4ce5fcd (patch) | |
tree | f75980ab6073ce282168d359a9a0ec8fd0625cc7 /src/node_api.h | |
parent | 9e5a2118cc15c63088837ce9424e844084d07633 (diff) | |
download | node-new-f803e77b1e2347dbce9d8098f3b6e231f4ce5fcd.tar.gz |
n-api: add napi_delete_element()
Refs: https://github.com/nodejs/node/issues/13924
PR-URL: https://github.com/nodejs/node/pull/13949
Reviewed-By: Jason Ginchereau <jasongin@microsoft.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r-- | src/node_api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_api.h b/src/node_api.h index a184094360..58222e7431 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -250,6 +250,10 @@ NAPI_EXTERN napi_status napi_get_element(napi_env env, napi_value object, uint32_t index, napi_value* result); +NAPI_EXTERN napi_status napi_delete_element(napi_env env, + napi_value object, + uint32_t index, + bool* result); NAPI_EXTERN napi_status napi_define_properties(napi_env env, napi_value object, |