这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@MoOx
Copy link
Collaborator

@MoOx MoOx commented Jul 30, 2020

This allow to skip some part of events (during serialization) that leave an NSLog and also add try/catch with reject for most method that present a risk.
This helped me recover errors from JavaScript instead of facing a brutal crash.

@wmcmahan I am very new to objective-c & would like your input on this (asking since I saw you handled some issues yay!)

Better to review without whitespace changes!

Note that this PR is on branch 2.0.0 (I am preparing a release with latest changes that are in master, unreleased, and some others that I tried on the 2.0.0 branch)

Also, should we do something similar for Android or is the way async is handled (from JS) enough to trigger promise rejection if something fails native side?)

Closes #311
Closes #281

This allow to skip some part of events (during serialization) that leave an NSLog and also add try/catch with reject for most method that present a risk.
This helped me recover errors from JavaScript instead of facing a brutal crash.
@MoOx MoOx requested a review from wmcmahan July 30, 2020 17:11
@MoOx MoOx merged commit 5864e23 into 2.0.0 Aug 1, 2020
@MoOx MoOx deleted the ios-try-catch branch August 1, 2020 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants