From d1c942f4b838d8f3aaf7fbc469f97f32eca2a2c6 Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Sun, 24 Nov 2019 16:24:35 +0200 Subject: [PATCH] n-api: add missed nullptr check in napi_has_own_property --- src/js_native_api_v8.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index 6484afaaac629e..5c809e977aea82 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -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 context = env->context(); v8::Local obj;