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 MylesBorins committed Dec 17, 2019
1 parent 0e68f55 commit 4d396fd
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 @@ -981,6 +981,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 4d396fd

Please sign in to comment.