Skip to content

Commit

Permalink
[unreal]拷贝构造和赋值重载,调用Global.Get获取Local Handle需要HandleScope,改为直接传Global
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Feb 7, 2025
1 parent 2213c81 commit 6fe69f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unreal/Puerts/Source/JsEnv/Public/JsObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6fe69f7

Please sign in to comment.