FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Introduce a setting for auto catching exceptions when calling JS method native · Issue #1119 · NativeScript/android · GitHub

Introduce a setting for auto catching exceptions when calling JS method native #1119

Description

We need a setting to enable and disable catching exceptions when calling the callJSMethodNative method. If enabled those exceptions will be caught an logged without propagating them.
The default value of that setting is false, so if such an error occurs it won't be caught and if not handled somewhere else will crash the application.
The flag is disabled by default, so if you want to enable it you should add in your app/package.json file this:

{
	...
	"discardUncaughtJsExceptions": true
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL