Skip to content

Commit

Permalink
n-api: add missed nullptr check in napi_has_own_property
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lundibundi authored and addaleax committed Nov 30, 2019
1 parent 1f10681 commit cc5875b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc5875b

Please sign in to comment.