diff --git a/src/node_api.cc b/src/node_api.cc index f0dbe1fb717486..1cd2fad9b9807a 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -2326,7 +2326,7 @@ napi_status napi_instanceof(napi_env env, } if (env->has_instance_available) { - napi_value value, js_result, has_instance = nullptr; + napi_value value, js_result = nullptr, has_instance = nullptr; napi_status status = napi_generic_failure; napi_valuetype value_type;