modify exception stack message

https://gitee.com/openharmony/ace_ace_engine/issues/I4XKDL

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6569cba9cdf0312b88406cd7654a9b71ba015672
This commit is contained in:
wengchangcheng
2022-03-12 22:57:39 +08:00
parent ab7534e28b
commit 481cef50ea
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -215,9 +215,9 @@ CString ErrorHelper::BuildNativeEcmaStackTrace(JSThread *thread)
data.push_back(':');
// line number and column number
auto callbackFunc = [&data](size_t line, size_t column) -> bool {
data += ToCString(line + 1);
data += ToCString(static_cast<int>(line) + 1);
data.push_back(':');
data += ToCString(column + 1);
data += ToCString(static_cast<int>(column) + 1);
return true;
};
if (!debugExtractor->MatchWithOffset(callbackFunc, method->GetFileId(), frameHandler.GetBytecodeOffset())) {
+1
View File
@@ -142,6 +142,7 @@ namespace panda::ecmascript {
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CALL_INITIALIZE() \
do { \
SAVE_PC(); \
thread->CheckSafepoint(); \
funcTagged = sp[funcReg]; \
JSTaggedValue funcValue(funcTagged); \