diff --git a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp index 88980de219a59edf339b91e38c039dea74b28e9a..333bb11d119f8d1df097c7d4eab8832741b4b9d1 100644 --- a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp +++ b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp @@ -78,8 +78,7 @@ void JsFileAccessExtAbility::Init(const std::shared_ptr &rec moduleName.append("::").append(abilityInfo_->name); HandleScope handleScope(jsRuntime_); - jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, - abilityInfo_->compileMode == AbilityRuntime::CompileMode::ES_MODULE); + jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath); if (jsObj_ == nullptr) { HILOG_ERROR("Failed to get jsObj_"); FinishTrace(HITRACE_TAG_FILEMANAGEMENT);