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 <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>
  • 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.