Skip to content

Commit

Permalink
[RN][JS] Fix setUpErrorHandling to show early JS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cipolleschi committed Oct 29, 2024
1 parent 1be8c51 commit 00d5f07
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react-native/Libraries/Core/setUpErrorHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ ExceptionsManager.installConsoleErrorReporter();
if (!global.__fbDisableExceptionsManager) {
const handleError = (e: mixed, isFatal: boolean) => {
try {
// TODO(T196834299): We should really use a c++ turbomodule for this
if (
!global.RN$handleException ||
!global.RN$handleException(e, isFatal)
) {
ExceptionsManager.handleException(e, isFatal);
}
} catch (ee) {
console.log('Failed to print error: ', ee.message);
throw e;
Expand Down

0 comments on commit 00d5f07

Please sign in to comment.