From 18a8f38c8beaf897469782890252827b0fff664e Mon Sep 17 00:00:00 2001 From: openharmony_ci <120357966@qq.com> Date: Tue, 6 Jun 2023 14:52:19 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!460=20:?= =?UTF-8?q?=20Adaptation=20of=20modular=20compilation'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inner_api/file_access/src/js_file_access_ext_ability.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 88980de2..333bb11d 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); -- Gitee