mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
Description:JsEnvironment support timer.
Sig:SIG_ApplicationFramework Feature or BugFix: Feature Binary Source: No Signed-off-by: zhangyafei.echo <zhangyafei12@huawei.com> Change-Id: I1b74939ac8d8c47cc256edf016f611ab2754ed1a
This commit is contained in:
@@ -515,7 +515,7 @@ bool JsRuntime::Initialize(const Options& options)
|
||||
if (options.isUnique) {
|
||||
HILOG_INFO("Not supported TimerModule when form render");
|
||||
} else {
|
||||
InitTimerModule(*nativeEngine, *globalObj);
|
||||
InitTimerModule();
|
||||
}
|
||||
|
||||
InitWorkerModule(*nativeEngine, codePath_, options.isDebugVersion, options.isBundle);
|
||||
@@ -1075,5 +1075,11 @@ void JsRuntime::FreeNativeReference(std::unique_ptr<NativeReference> uniqueNativ
|
||||
work = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void JsRuntime::InitTimerModule()
|
||||
{
|
||||
CHECK_POINTER(jsEnv_);
|
||||
jsEnv_->InitTimerModule();
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
|
||||
Reference in New Issue
Block a user