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 targos committed Dec 1, 2019
1 parent dcbe376 commit 36f7f88
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 36f7f88

Please sign in to comment.