Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/NativeScript/JSErrors.mm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void reportErrorIfAny(JSC::ExecState* execState, JSC::CatchScope& scope) {
|| globalObject->isUIApplicationMainAtTopOfCallstack();

if (treatExceptionsAsUncaught) {
id discardExceptionsValue = [[TNSRuntime current] appPackageJson][@"discardUncaughtJsExceptions"];
id discardExceptionsValue = [[TNSRuntime runtimeForVM:&execState->vm()] appPackageJson][@"discardUncaughtJsExceptions"];
bool discardExceptions = [discardExceptionsValue boolValue];
scope.clearException();
if (discardExceptions) {
Expand Down Expand Up @@ -181,8 +181,8 @@ void reportFatalErrorBeforeShutdown(ExecState* execState, Exception* exception,
CFRunLoopRunInMode((CFStringRef)TNSInspectorRunLoopMode, 0.1, false);
}
}
id discardExceptionsValue = [[TNSRuntime current] appPackageJson][@"discardUncaughtJsExceptions"];

id discardExceptionsValue = [[TNSRuntime runtimeForVM:&execState->vm()] appPackageJson][@"discardUncaughtJsExceptions"];
bool discardExceptions = [discardExceptionsValue boolValue];
if (!discardExceptions) {
String message = exception->value().toString(globalObject->globalExec())->value(globalObject->globalExec());
Expand Down