diff options
author | cjihrig <cjihrig@gmail.com> | 2017-06-27 20:29:58 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-07-01 00:08:51 +0300 |
commit | f803e77b1e2347dbce9d8098f3b6e231f4ce5fcd (patch) | |
tree | f75980ab6073ce282168d359a9a0ec8fd0625cc7 /src/node_api.h | |
parent | 9e5a2118cc15c63088837ce9424e844084d07633 (diff) |
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 a1840943602..58222e74318 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, |