Skip to content

Commit

Permalink
[RN][JS] Fix setUpErrorHandling to show early JS errors (#47287)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipolleschi authored Oct 31, 2024
1 parent 0def73d commit dac6d50
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 dac6d50

Please sign in to comment.