From 9c595a4c8f5df1679d66d2ab6c4c80090f777338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A0=B9=E5=A0=82?= Date: Mon, 3 Jul 2023 04:11:44 +0000 Subject: [PATCH] update ipc/native/src/napi_common/source/napi_remote_object.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马根堂 --- ipc/native/src/napi_common/source/napi_remote_object.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ipc/native/src/napi_common/source/napi_remote_object.cpp b/ipc/native/src/napi_common/source/napi_remote_object.cpp index 62d69b5..6bec675 100644 --- a/ipc/native/src/napi_common/source/napi_remote_object.cpp +++ b/ipc/native/src/napi_common/source/napi_remote_object.cpp @@ -189,11 +189,12 @@ napi_ref NAPIRemoteObject::GetJsObjectRef() const return thisVarRef_; } -void NAPIRemoteObject::SetNewEnv(napi_env env) +void NAPIRemoteObject::SetNewEnv(napi_env envNew) { - if (envNew_ != env) { + if (envNew_ != envNew) { ZLOGI(LOG_LABEL, "env updated"); } + envNew_ = envNew } void NAPI_RemoteObject_getCallingInfo(CallingInfo &newCallingInfoParam) -- GitLab