mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-27 02:50:40 +00:00
!61 Adaptation of modular compilation
Merge pull request !61 from DaiHN/master
This commit is contained in:
commit
65f9821552
@ -89,7 +89,8 @@ bool JsPrintExtension::InitExtensionObj(JsRuntime &jsRuntime)
|
||||
PRINT_HILOGD("Init module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str());
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
|
||||
jsObj_ = jsRuntime.LoadModule(moduleName, srcPath, abilityInfo_->hapPath);
|
||||
jsObj_ = jsRuntime.LoadModule(moduleName, srcPath, abilityInfo_->hapPath,
|
||||
abilityInfo_->compileMode == CompileMode::ES_MODULE);
|
||||
if (jsObj_ == nullptr) {
|
||||
PRINT_HILOGE("Failed to get jsObj_");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user