diff --git a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp index 4be6978ed25..3d3ee59121a 100644 --- a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp +++ b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp @@ -742,6 +742,12 @@ void JsiDeclarativeEngine::RegisterInitWorkerFunc() return; } instance->InitConsoleModule(arkNativeEngine); + + std::vector 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); }