mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-31 22:41:42 +08:00
Ensure exceptions from route generation are reported
Reviewed By: swarr Differential Revision: D2631395 fb-gh-sync-id: cf59a290a4b447122c36ec20176b563a38bee630
This commit is contained in:
committed by
facebook-github-bot-5
parent
0b5b0f9016
commit
478a712d20
@@ -71,6 +71,10 @@ function polyfillGlobal(name, newValue, scope=GLOBAL) {
|
||||
}
|
||||
|
||||
function setUpErrorHandler() {
|
||||
if (global.__fbDisableExceptionsManager) {
|
||||
return;
|
||||
}
|
||||
|
||||
function handleError(e, isFatal) {
|
||||
try {
|
||||
require('ExceptionsManager').handleException(e, isFatal);
|
||||
|
||||
Reference in New Issue
Block a user