From b8ee30cf735dc2b7bf313ca90405b47f42c0f6df Mon Sep 17 00:00:00 2001 From: rentangyu Date: Sun, 1 Mar 2026 12:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue:https://gitcode.com/openharmony/arkcompiler_ets_runtime/issues/11985?ref=&did=3490383#tid-3490383 Signed-off-by: rentangyu --- .../frameworks/js_environment/src/js_environment.cpp | 4 +--- js_environment/interfaces/inner_api/source_map_operator.h | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/js_environment/frameworks/js_environment/src/js_environment.cpp b/js_environment/frameworks/js_environment/src/js_environment.cpp index f159100728..2ee6522893 100644 --- a/js_environment/frameworks/js_environment/src/js_environment.cpp +++ b/js_environment/frameworks/js_environment/src/js_environment.cpp @@ -131,10 +131,8 @@ void JsEnvironment::InitSourceMap(const std::shared_ptrGetHasFile()) { + if (sourceMapOperator_ != nullptr) { sourceMapOperator_->InitSourceMap(); - } else { - sourceMapOperator_->SetInitStatus(InitStatus::EXECUTED_SUCCESSFULLY); } auto translateBySourceMapFunc = [&](const std::string& rawStack) -> std::string { diff --git a/js_environment/interfaces/inner_api/source_map_operator.h b/js_environment/interfaces/inner_api/source_map_operator.h index 54db9fbb32..c61403abb6 100644 --- a/js_environment/interfaces/inner_api/source_map_operator.h +++ b/js_environment/interfaces/inner_api/source_map_operator.h @@ -87,10 +87,6 @@ public: return sourceMapObj_; } - bool GetHasFile() const - { - return hasFile_; - } private: const std::string bundleName_; bool hasFile_ = false;