Searched refs:rawStack (Results 1 – 12 of 12) sorted by relevance
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
D | jsi_base_utils.cpp | 107 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 …]
|
D | jsi_base_utils.h | 39 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/ |
D | source_map_test.cpp | 109 …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/ |
D | source_map.cpp | 489 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()
|
D | js_environment.cpp | 123 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/ |
D | source_map.h | 76 static ErrorPos GetErrorPos(const std::string& rawStack);
|
/foundation/arkui/napi/native_engine/ |
D | native_engine.h | 111 using SourceMapCallback = std::function<std::string(const std::string& rawStack)>; 356 virtual std::string ExecuteTranslateBySourceMap(const std::string& rawStack) = 0;
|
D | native_api.cpp | 2536 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/ |
D | mock_js_native_engine.h | 395 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override in ExecuteTranslateBySourceMap() argument
|
/foundation/ability/ability_runtime/test/unittest/ability_runtime_error_util_test/ |
D | mock_native_engine.h | 394 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override in ExecuteTranslateBySourceMap() argument
|
/foundation/arkui/napi/native_engine/impl/ark/ |
D | ark_native_engine.h | 245 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override;
|
D | ark_native_engine.cpp | 1429 std::string ArkNativeEngine::ExecuteTranslateBySourceMap(const std::string& rawStack) in ExecuteTranslateBySourceMap() argument 1432 return SourceMapCallback_(rawStack); in ExecuteTranslateBySourceMap()
|