mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -947,6 +947,7 @@ void MainThread::HandleLaunchApplication(const AppLaunchData &appLaunchData, con
|
||||
auto versionCode = appInfo.versionCode;
|
||||
wptr<MainThread> weak = this;
|
||||
auto uncaughtTask = [weak, bundleName, versionCode](NativeValue* v) {
|
||||
HILOG_INFO("Js uncaught exception callback come.");
|
||||
NativeObject* obj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(v);
|
||||
std::string errorMsg = GetNativeStrFromJsTaggedObj(obj, "message");
|
||||
std::string errorName = GetNativeStrFromJsTaggedObj(obj, "name");
|
||||
|
||||
Reference in New Issue
Block a user