mirror of
https://gitee.com/openharmony/napi_generator
synced 2024-11-23 08:20:01 +00:00
modify napi tool bug
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
This commit is contained in:
parent
912e57ba79
commit
1f7cd0b1c7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user