Skip to content

[0.78] Convert to JSException only NSException from sync methods #867

@cipolleschi

Description

@cipolleschi

Target Branch(es)

0.78

Link to commit or PR to be picked

facebook/react-native@8eec35f

Description

If a Native Module executes an async method through the TM interop layer, and the method raises an exception, the app crashes because the convertNSExceptionToJSError fails to convert the exception due to some threading issue.

This commit converts the exception to JSError only for synch methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions