Skip to content

Commit dac6d50

Browse files
authored
[RN][JS] Fix setUpErrorHandling to show early JS errors (#47287)
1 parent 0def73d commit dac6d50

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/react-native/Libraries/Core/setUpErrorHandling.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ ExceptionsManager.installConsoleErrorReporter();
2121
if (!global.__fbDisableExceptionsManager) {
2222
const handleError = (e: mixed, isFatal: boolean) => {
2323
try {
24-
// TODO(T196834299): We should really use a c++ turbomodule for this
25-
if (
26-
!global.RN$handleException ||
27-
!global.RN$handleException(e, isFatal)
28-
) {
2924
ExceptionsManager.handleException(e, isFatal);
30-
}
3125
} catch (ee) {
3226
console.log('Failed to print error: ', ee.message);
3327
throw e;

0 commit comments

Comments
 (0)