diff --git a/unreal/Puerts/Source/JsEnv/Public/JsObject.h b/unreal/Puerts/Source/JsEnv/Public/JsObject.h index 9d72976350..b487f3304d 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; }