Skip to content

Conversation

@javache
Copy link
Member

@javache javache commented Aug 14, 2024

Summary:
Wrapping the JavaScriptException with a RuntimException means we lose JS specific metadata on the top-level exceptions, and can break categorization in crash-reporting tools.

We could also use the same logic as DefaultJSExceptionHandler but that doesn't seem to be required for Kotlin.

Changelog: [Internal]

Differential Revision: D61261515

Summary:
Wrapping the JavaScriptException with a RuntimException means we lose JS specific metadata on the top-level exceptions, and can break categorization in crash-reporting tools.

We could also use the same logic as [DefaultJSExceptionHandler](https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/DefaultJSExceptionHandler.java) but that doesn't seem to be required for Kotlin.

Changelog: [Internal]

Differential Revision: D61261515
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Aug 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D61261515

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 59c1adb.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @javache in 59c1adb

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D61261515 branch August 30, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants