mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-11 18:05:04 +00:00
add necessary function for worker envrionment
Signed-off-by: y00576111 <yaojian16@huawei.com> Change-Id: I72e11ea7a3e3998fd3798e52642534046940edb8
This commit is contained in:
parent
e2f341bfcb
commit
6c3874cdb3
@ -742,6 +742,12 @@ void JsiDeclarativeEngine::RegisterInitWorkerFunc()
|
||||
return;
|
||||
}
|
||||
instance->InitConsoleModule(arkNativeEngine);
|
||||
|
||||
std::vector<uint8_t> buffer((uint8_t *)_binary_jsEnumStyle_abc_start, (uint8_t *)_binary_jsEnumStyle_abc_end);
|
||||
auto stateMgmtResult = arkNativeEngine->RunBufferScript(buffer);
|
||||
if (stateMgmtResult == nullptr) {
|
||||
LOGE("init worker error");
|
||||
}
|
||||
};
|
||||
OHOS::CCRuntime::Worker::WorkerCore::RegisterInitWorkerFunc(initWorkerFunc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user