update ipc/native/src/napi_common/source/napi_remote_object.cpp.

Signed-off-by: 马根堂 <magentang4@huawei.com>
This commit is contained in:
马根堂 2023-06-29 14:15:40 +00:00 committed by Gitee
parent e0fb8d4c22
commit b2d157f480
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -164,7 +164,7 @@ NAPIRemoteObject::NAPIRemoteObject(napi_env env, napi_ref jsObjectRef, const std
NAPIRemoteObject::~NAPIRemoteObject()
{
ZLOGI(LOG_LABEL, "NAPIRemoteObject Destructor, desc:%{public}s", Str16ToStr8(desc_).c_str());
ZLOGI(LOG_LABEL, "NAPIRemoteObject destroyed, desc:%{public}s", Str16ToStr8(desc_).c_str());
if (thisVarRef_ != nullptr) {
napi_status status = napi_delete_reference(env_, thisVarRef_);
NAPI_ASSERT_RETURN_VOID(env_, status == napi_ok, "failed to delete ref to js RemoteObject");