mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-17 06:56:24 +00:00
!48270 loadDocument流程添加localScope
Merge pull request !48270 from fangzhiyuan/uicontext2
This commit is contained in:
commit
eef011eb95
@ -1498,6 +1498,7 @@ bool JsiDeclarativeEngine::UpdateRootComponent()
|
||||
{
|
||||
if (!JsiDeclarativeEngine::obj_.IsEmpty()) {
|
||||
LOGI("update rootComponent start");
|
||||
LocalScope scope(obj_.GetEcmaVM());
|
||||
Framework::UpdateRootComponent(obj_.GetEcmaVM(), JsiDeclarativeEngine::obj_.ToLocal());
|
||||
// Clear the global object to avoid load this obj next time
|
||||
JsiDeclarativeEngine::obj_.FreeGlobalHandleAddr();
|
||||
|
@ -238,6 +238,7 @@ void UpdateCardRootComponent(const EcmaVM* vm, const panda::Local<panda::ObjectR
|
||||
panda::Local<panda::JSValueRef> JsLoadDocument(panda::JsiRuntimeCallInfo* runtimeCallInfo)
|
||||
{
|
||||
EcmaVM* vm = runtimeCallInfo->GetVM();
|
||||
LocalScope scope(vm);
|
||||
uint32_t argc = runtimeCallInfo->GetArgsNumber();
|
||||
if (argc != 1) {
|
||||
return panda::JSValueRef::Undefined(vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user