summaryrefslogtreecommitdiff
path: root/src/node_api.h
diff options
context:
space:
mode:
authorSampson Gao <sampsong@ca.ibm.com>2017-08-08 16:21:56 -0400
committerMichael Dawson <mdawson@devrus.com>2017-09-14 16:21:27 -0400
commit973c12f631c53a9833e0bcd11f5457ebec5269c4 (patch)
tree1fe815b2d1bb2f47d4f5b23d902635c3b4ae93df /src/node_api.h
parent0c258bdc4040fcc4ab590fc80dbcd2182b4c74ae (diff)
downloadandroid-node-v8-973c12f631c53a9833e0bcd11f5457ebec5269c4.tar.gz
android-node-v8-973c12f631c53a9833e0bcd11f5457ebec5269c4.tar.bz2
android-node-v8-973c12f631c53a9833e0bcd11f5457ebec5269c4.zip
n-api: napi_is_construct_call->napi_get_new_target
Remove napi_is_construct_call and introduce napi_get_new_target. PR-URL: https://github.com/nodejs/node/pull/14698 Reviewed-By: Jason Ginchereau <jasongin@microsoft.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r--src/node_api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_api.h b/src/node_api.h
index c7d5e746f1..e1a40983a9 100644
--- a/src/node_api.h
+++ b/src/node_api.h
@@ -330,9 +330,9 @@ NAPI_EXTERN napi_status napi_get_cb_info(
napi_value* this_arg, // [out] Receives the JS 'this' arg for the call
void** data); // [out] Receives the data pointer for the callback.
-NAPI_EXTERN napi_status napi_is_construct_call(napi_env env,
- napi_callback_info cbinfo,
- bool* result);
+NAPI_EXTERN napi_status napi_get_new_target(napi_env env,
+ napi_callback_info cbinfo,
+ napi_value* result);
NAPI_EXTERN napi_status
napi_define_class(napi_env env,
const char* utf8name,