Skip to content
Permalink
Browse files

n-api: add missed nullptr check in napi_has_own_property

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 Nov 24, 2019
1 parent 0e68f55 commit 4d396fd874597775825966b120592b83c8549fb4
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/js_native_api_v8.cc
@@ -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;

0 comments on commit 4d396fd

Please sign in to comment.
You can’t perform that action at this time.