Home
last modified time | relevance | path

Searched refs:rawStack (Results 1 – 12 of 12) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
Djsi_base_utils.cpp107 std::string rawStack; in GenerateErrorMsg() local
115 rawStack = stack->ToString(runtime); in GenerateErrorMsg()
121 .append(GetMsgStr(rawStack)) in GenerateErrorMsg()
192 std::string rawStack = stack->ToString(runtime); in GenerateSummaryBody() local
193 if (rawStack.empty()) { in GenerateSummaryBody()
199 auto errorPos = GetErrorPos(rawStack); in GenerateSummaryBody()
205 bool isAppPage = rawStack.find(runningPageTag, 1) != std::string::npos && appMap; in GenerateSummaryBody()
213 showStack = TranslateBySourceMap(rawStack, pageUrl, sourceMaps, appMap, data); in GenerateSummaryBody()
215 showStack = TranslateStack(rawStack, pageUrl, pageMap, appMap, data); in GenerateSummaryBody()
219 LOGI("JS Stack:\n%{public}s", TranslateRawStack(rawStack).c_str()); in GenerateSummaryBody()
[all …]
Djsi_base_utils.h39 static std::string TransSourceStack(RefPtr<JsAcePage> runningPage, const std::string& rawStack);
85 static ErrorPos GetErrorPos(const std::string& rawStack);
/foundation/ability/ability_runtime/js_environment/test/unittest/source_map_test/
Dsource_map_test.cpp109 …std::string rawStack = "at AssertException (/mnt/assets/ets/TestAbility/TestAbility_.js:5779:5)\n"; variable
110 auto pos = SourceMap::GetErrorPos(rawStack);
125 std::string rawStack = "\n"; variable
126 auto pos = SourceMap::GetErrorPos(rawStack);
141 std::string rawStack = "?\n"; variable
142 auto pos = SourceMap::GetErrorPos(rawStack);
/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/
Dsource_map.cpp489 ErrorPos SourceMap::GetErrorPos(const std::string& rawStack) in GetErrorPos() argument
491 size_t findLineEnd = rawStack.find("\n"); in GetErrorPos()
496 if (lineEnd < 1 || rawStack[lineEnd - 1] == '?') { in GetErrorPos()
500 uint32_t secondPos = rawStack.rfind(':', lineEnd); in GetErrorPos()
501 uint32_t fristPos = rawStack.rfind(':', secondPos - 1); in GetErrorPos()
503 std::string lineStr = rawStack.substr(fristPos + 1, secondPos - 1 - fristPos); in GetErrorPos()
504 std::string columnStr = rawStack.substr(secondPos + 1, lineEnd - 1 - secondPos); in GetErrorPos()
Djs_environment.cpp123 auto translateBySourceMapFunc = [&](const std::string& rawStack) { in InitSourceMap() argument
124 return sourceMapOperator_->TranslateBySourceMap(rawStack); in InitSourceMap()
/foundation/ability/ability_runtime/js_environment/interfaces/inner_api/
Dsource_map.h76 static ErrorPos GetErrorPos(const std::string& rawStack);
/foundation/arkui/napi/native_engine/
Dnative_engine.h111 using SourceMapCallback = std::function<std::string(const std::string& rawStack)>;
356 virtual std::string ExecuteTranslateBySourceMap(const std::string& rawStack) = 0;
Dnative_api.cpp2536 std::string rawStack; in napi_get_stack_trace() local
2537 bool getStackSuccess = engine->BuildJsStackTrace(rawStack); in napi_get_stack_trace()
2541 stack = engine->ExecuteTranslateBySourceMap(rawStack); in napi_get_stack_trace()
/foundation/ability/ability_runtime/test/unittest/runtime_test/
Dmock_js_native_engine.h395 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override in ExecuteTranslateBySourceMap() argument
/foundation/ability/ability_runtime/test/unittest/ability_runtime_error_util_test/
Dmock_native_engine.h394 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override in ExecuteTranslateBySourceMap() argument
/foundation/arkui/napi/native_engine/impl/ark/
Dark_native_engine.h245 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override;
Dark_native_engine.cpp1429 std::string ArkNativeEngine::ExecuteTranslateBySourceMap(const std::string& rawStack) in ExecuteTranslateBySourceMap() argument
1432 return SourceMapCallback_(rawStack); in ExecuteTranslateBySourceMap()