From f01ef0f41da9108799e0da099673d777e327686d Mon Sep 17 00:00:00 2001 From: rentangyu Date: Tue, 25 Feb 2025 09:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9C=E7=A8=8Bhsp=E6=A0=88=E6=A0=88?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue:https://gitee.com/openharmony/ability_ability_runtime/issues/IBOM50 Signed-off-by: rentangyu --- js_environment/frameworks/js_environment/src/source_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_environment/frameworks/js_environment/src/source_map.cpp b/js_environment/frameworks/js_environment/src/source_map.cpp index 5b1df7b5b9..96ef8b3e3d 100644 --- a/js_environment/frameworks/js_environment/src/source_map.cpp +++ b/js_environment/frameworks/js_environment/src/source_map.cpp @@ -155,7 +155,7 @@ std::string SourceMap::TranslateBySourceMap(const std::string& stackStr) auto iter = sourceMaps_.find(key); if (iter != sourceMaps_.end()) { sourceInfo = GetSourceInfo(line, column, *(iter->second), key); - } else if (key.rfind(".js") != std::string::npos) { + } else { ans = ans + temp + "\n"; continue; }