mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-08-28 04:49:56 -04:00
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:
@@ -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())) {
|
||||
|
||||
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user