Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b3c22d0

Browse files
Don't crash the demo apps on Android when an uncaught exception was thrown
1 parent 1df7951 commit b3c22d0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

demo-ng/app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"android": {
3-
"v8Flags": "--expose_gc"
3+
"v8Flags": "--expose_gc",
4+
"discardUncaughtJsExceptions": true
45
},
56
"main": "main.js",
67
"name": "tns-template-hello-world-ng",
78
"version": "3.3.0"
8-
}
9+
}

demo/app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
},
2727
"homepage": "https://github.com/NativeScript/template-hello-world-ts",
2828
"android": {
29-
"v8Flags": "--expose_gc"
29+
"v8Flags": "--expose_gc",
30+
"discardUncaughtJsExceptions": true
3031
},
3132
"devDependencies": {
3233
"nativescript-dev-typescript": "^0.3.0"

0 commit comments

Comments
 (0)