Commit 6dfe59e
Fix missing bundle errors not correctly reported on Android (#52441)
Summary:
Pull Request resolved: #52441
When an error is thrown using `handleHostException` from within the (immediate) execution of a `Task`, the `Task` will capture the error. If those errors are never consumed, the error is just silently swallowed. Instead we should make sure that this is raised outside of the context of a `Task` so the error correctly bubbles up and crashes the app (in release).
Changelog: [Internal]
Reviewed By: rshest
Differential Revision: D77798248
fbshipit-source-id: 41803aba0cace0e364a235501cf34bb946e7ff511 parent db65cb7 commit 6dfe59e
1 file changed
Lines changed: 8 additions & 11 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | 832 | | |
840 | 833 | | |
841 | 834 | | |
| |||
952 | 945 | | |
953 | 946 | | |
954 | 947 | | |
955 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
956 | 955 | | |
957 | | - | |
958 | 956 | | |
959 | 957 | | |
960 | 958 | | |
| |||
991 | 989 | | |
992 | 990 | | |
993 | 991 | | |
994 | | - | |
995 | 992 | | |
996 | 993 | | |
997 | | - | |
| 994 | + | |
998 | 995 | | |
999 | 996 | | |
1000 | 997 | | |
| |||
0 commit comments