diff options
author | Sampson Gao <sampsong@ca.ibm.com> | 2017-08-08 16:21:56 -0400 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2017-09-14 16:21:27 -0400 |
commit | 973c12f631c53a9833e0bcd11f5457ebec5269c4 (patch) | |
tree | 1fe815b2d1bb2f47d4f5b23d902635c3b4ae93df /src/node_api.h | |
parent | 0c258bdc4040fcc4ab590fc80dbcd2182b4c74ae (diff) | |
download | node-new-973c12f631c53a9833e0bcd11f5457ebec5269c4.tar.gz |
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.h | 6 |
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, |