mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
n-api: add missed nullptr check in napi_has_own_property
PR-URL: https://github.com/nodejs/node/pull/30626 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
1f10681496
commit
cc5875b2e6
1 file changed
+1
@@ -983,6 +983,7 @@ napi_status napi_has_own_property(napi_env env,
|
||||
bool* result) {
|
||||
NAPI_PREAMBLE(env);
|
||||
CHECK_ARG(env, key);
|
||||
CHECK_ARG(env, result);
|
||||
|
||||
v8::Local<v8::Context> context = env->context();
|
||||
v8::Local<v8::Object> obj;
|
||||
|
||||
Reference in new issue
Block a user