From 1f7cd0b1c74f81a6e310375164c92fd5754e08c6 Mon Sep 17 00:00:00 2001 From: bayanxing Date: Wed, 29 Dec 2021 22:49:24 -0800 Subject: [PATCH] modify napi tool bug Signed-off-by: bayanxing --- napi_tool/nodejs_test/gen/x_napi_tool.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/napi_tool/nodejs_test/gen/x_napi_tool.cpp b/napi_tool/nodejs_test/gen/x_napi_tool.cpp index 078f1165..de6a1b1a 100755 --- a/napi_tool/nodejs_test/gen/x_napi_tool.cpp +++ b/napi_tool/nodejs_test/gen/x_napi_tool.cpp @@ -13,7 +13,7 @@ XNapiTool::XNapiTool(napi_env env, napi_callback_info info) { env_ = env; - //bFailed_ = false; + bFailed_ = false; executeFunction_ = nullptr; completeFunction_ = nullptr; valueData_ = nullptr; @@ -22,6 +22,8 @@ XNapiTool::XNapiTool(napi_env env, napi_callback_info info) pInstance_ = nullptr; releaseInstance_ = nullptr; wrapper_ = nullptr; + asyncInstance_ = nullptr; + data_ = nullptr; argc_ = 8; @@ -36,6 +38,16 @@ XNapiTool::XNapiTool(napi_env env, napi_value exports) asyncMode_ = AsyncMode::NONE; wrapper_ = nullptr; + + bFailed_ = false; + executeFunction_ = nullptr; + completeFunction_ = nullptr; + valueData_ = nullptr; + asyncNeedRelease_ = false; + pInstance_ = nullptr; + releaseInstance_ = nullptr; + asyncInstance_ = nullptr; + data_ = nullptr; } XNapiTool::~XNapiTool()