Skip to content

Commit 36f7f88

Browse files
lundibunditargos
authored andcommitted
n-api: add missed nullptr check in napi_has_own_property
PR-URL: #30626 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent dcbe376 commit 36f7f88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js_native_api_v8.cc

+1
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,7 @@ napi_status napi_has_own_property(napi_env env,
981981
bool* result) {
982982
NAPI_PREAMBLE(env);
983983
CHECK_ARG(env, key);
984+
CHECK_ARG(env, result);
984985

985986
v8::Local<v8::Context> context = env->context();
986987
v8::Local<v8::Object> obj;

0 commit comments

Comments
 (0)