Skip to content

Commit cc5875b

Browse files
lundibundiaddaleax
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 1f10681 commit cc5875b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/js_native_api_v8.cc

+1
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ napi_status napi_has_own_property(napi_env env,
983983
bool* result) {
984984
NAPI_PREAMBLE(env);
985985
CHECK_ARG(env, key);
986+
CHECK_ARG(env, result);
986987

987988
v8::Local<v8::Context> context = env->context();
988989
v8::Local<v8::Object> obj;

0 commit comments

Comments
 (0)