完成在taskpool中调用canIUse需求

Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
liutuantuan
2024-06-01 14:04:07 +08:00
parent 9c8ce8ee1f
commit 1e95a23065
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -43,6 +43,7 @@
#include "js_runtime_utils.h"
#include "native_engine/impl/ark/ark_native_engine.h"
#include "commonlibrary/ets_utils/js_sys_module/console/console.h"
#include "syscap_ts.h"
#ifdef SUPPORT_SCREEN
using OHOS::Ace::ContainerScope;
#endif
@@ -88,6 +89,7 @@ void InitWorkerFunc(NativeEngine* nativeEngine)
}
OHOS::JsSysModule::Console::InitConsoleModule(reinterpret_cast<napi_env>(nativeEngine));
InitSyscapModule(reinterpret_cast<napi_env>(nativeEngine), globalObj);
#ifdef SUPPORT_SCREEN
OHOS::Ace::DeclarativeModulePreloader::PreloadWorker(*nativeEngine);
#endif
+1
View File
@@ -116,6 +116,7 @@ ohos_shared_library("runtime") {
"resource_management:global_resmgr",
"samgr:samgr_proxy",
"zlib:shared_libz",
"init:syscap_ts",
]
if (cj_frontend) {