diff --git a/ets_environment/frameworks/ets_environment/src/ets_environment.cpp b/ets_environment/frameworks/ets_environment/src/ets_environment.cpp index 5b75b2f7de78e7e446357600eebf59e57ad9435a..84c3fe7034ddd44132aec334ae59df61775a2911 100644 --- a/ets_environment/frameworks/ets_environment/src/ets_environment.cpp +++ b/ets_environment/frameworks/ets_environment/src/ets_environment.cpp @@ -234,6 +234,7 @@ bool ETSEnvironment::Initialize() options.push_back(ani_option { bootString.data(), nullptr }); options.push_back(ani_option { "--ext:--compiler-enable-jit=false", nullptr }); options.push_back(ani_option { "--ext:--log-level=info", nullptr }); + options.push_back(ani_option { "--ext:taskpool-support-interop=true", nullptr }); ani_options optionsPtr = { options.size(), options.data() }; ani_status status = ANI_ERROR; if ((status = lazyApis_.ANI_CreateVM(&optionsPtr, ANI_VERSION_1, &vmEntry_.aniVm_)) != ANI_OK) { @@ -582,4 +583,4 @@ ETSEnvFuncs *ETSEnvironment::RegisterFuncs() ETS_EXPORT extern "C" ETSEnvFuncs *OHOS_ETS_ENV_RegisterFuncs() { return OHOS::EtsEnv::ETSEnvironment::RegisterFuncs(); -} \ No newline at end of file +}