代码不一致整改

issue:https://gitcode.com/openharmony/arkcompiler_ets_runtime/issues/11985?ref=&did=3490383#tid-3490383

Signed-off-by: rentangyu <rentangyu@huawei.com>
This commit is contained in:
rentangyu
2026-03-01 12:43:08 +08:00
committed by rentangyu
parent b3e3ac24fb
commit b608fbec36
2 changed files with 1 additions and 7 deletions
@@ -131,10 +131,8 @@ void JsEnvironment::InitSourceMap(const std::shared_ptr<JsEnv::SourceMapOperator
return;
}
if (sourceMapOperator_ != nullptr && sourceMapOperator_->GetHasFile()) {
if (sourceMapOperator_ != nullptr) {
sourceMapOperator_->InitSourceMap();
} else {
sourceMapOperator_->SetInitStatus(InitStatus::EXECUTED_SUCCESSFULLY);
}
auto translateBySourceMapFunc = [&](const std::string& rawStack) -> std::string {
@@ -87,10 +87,6 @@ public:
return sourceMapObj_;
}
bool GetHasFile() const
{
return hasFile_;
}
private:
const std::string bundleName_;
bool hasFile_ = false;