Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): handle uncaught exceptions in timers and Obj-C based proxy fireEvent lifecycle #11439

Merged
merged 12 commits into from Feb 13, 2020

Conversation

sgtcoolguy
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-27528

Description:
This adds some manual checking of unhandled exceptions after firing events or running timers using the new Obj-C JSC API. If there is an exception, we call out TiExceptionHandler code (i.e. display the grey/red stack trace view, fire Ti.App.uncaughtException event).

Note that last time we added an exception handler on the JSC API itself and that messed with the test suite working properly. I hope/assume this will not?

@sgtcoolguy sgtcoolguy added this to the 9.1.0 milestone Jan 17, 2020
@sgtcoolguy sgtcoolguy changed the title Timob 27528 fix(ios): handle uncaught exceptions in timers and Obj-C based proxy fireEvent lifecycle Jan 17, 2020
@build build requested a review from a team January 17, 2020 18:03
@build
Copy link
Contributor

build commented Jan 17, 2020

Warnings
⚠️ This PR has milestone set to 9.0.0, but the version defined in package.json is 9.1.0 Please either: - Update the milestone on the PR - Update the version in package.json - Hold the PR to be merged later after a release and version bump on this branch
Messages
📖 ✊ The commits in this PR match our conventions! Feel free to Rebase and Merge this PR when ready.
📖

✅ All tests are passing
Nice one! All 4488 tests are passing.
(There are 458 skipped tests not included in that total)

Generated by 🚫 dangerJS against 0ef202d

@garymathews garymathews modified the milestones: 9.1.0, 9.0.0 Jan 17, 2020
Copy link
Contributor

@janvennemann janvennemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is probably an unnecessary complaint, but i really got to dislike all those damn Obj-C square brackets so i try to get rid of them whenever possible 😅

@ewanharris ewanharris removed this from the 9.0.0 milestone Feb 12, 2020
@ewanharris ewanharris added this to the 9.1.0 milestone Feb 12, 2020
@garymathews garymathews modified the milestones: 9.1.0, 9.0.0 Feb 12, 2020
@sgtcoolguy sgtcoolguy merged commit 34a5e55 into tidev:master Feb 13, 2020
@sgtcoolguy sgtcoolguy deleted the TIMOB-27528 branch February 13, 2020 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants