From cc5875b2e67ad843f01d45db9fa4f53e561fb3f1 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 PR-URL: https://github.com/nodejs/node/pull/30626 Reviewed-By: Gireesh Punathil Reviewed-By: Chengzhong Wu Reviewed-By: Colin Ihrig Reviewed-By: David Carlier Reviewed-By: Michael Dawson Reviewed-By: Anna Henningsen --- 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;