From 6fe69f773a79df237f201c9ffdc1ead2c47f2092 Mon Sep 17 00:00:00 2001 From: johnche Date: Fri, 7 Feb 2025 11:05:47 +0800 Subject: [PATCH] =?UTF-8?q?[unreal]=E6=8B=B7=E8=B4=9D=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E5=92=8C=E8=B5=8B=E5=80=BC=E9=87=8D=E8=BD=BD=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E7=94=A8Global.Get=E8=8E=B7=E5=8F=96Local=20Handle=E9=9C=80?= =?UTF-8?q?=E8=A6=81HandleScope=EF=BC=8C=E6=94=B9=E4=B8=BA=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BC=A0Global?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unreal/Puerts/Source/JsEnv/Public/JsObject.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unreal/Puerts/Source/JsEnv/Public/JsObject.h b/unreal/Puerts/Source/JsEnv/Public/JsObject.h index 9d72976350b..b487f3304d5 100644 --- a/unreal/Puerts/Source/JsEnv/Public/JsObject.h +++ b/unreal/Puerts/Source/JsEnv/Public/JsObject.h @@ -49,8 +49,8 @@ struct FJsObject #ifdef THREAD_SAFE v8::Locker Locker(Isolate); #endif - GContext.Reset(Isolate, InOther.GContext.Get(Isolate)); - GObject.Reset(Isolate, InOther.GObject.Get(Isolate)); + GContext.Reset(Isolate, InOther.GContext); + GObject.Reset(Isolate, InOther.GObject); JsEnvLifeCycleTracker = PUERTS_NAMESPACE::DataTransfer::GetJsEnvLifeCycleTracker(Isolate); } @@ -96,8 +96,8 @@ struct FJsObject return *this; } Isolate = InOther.Isolate; - GContext.Reset(Isolate, InOther.GContext.Get(Isolate)); - GObject.Reset(Isolate, InOther.GObject.Get(Isolate)); + GContext.Reset(Isolate, InOther.GContext); + GObject.Reset(Isolate, InOther.GObject); JsEnvLifeCycleTracker = PUERTS_NAMESPACE::DataTransfer::GetJsEnvLifeCycleTracker(Isolate); return *this; }