20 lines
631 B
JavaScript
20 lines
631 B
JavaScript
// Metro module 188 (f189).
|
|
import * as _reportException from "./reportException";
|
|
import * as _toError from "./toError";
|
|
import * as _Module47 from "./Module47";
|
|
if (global.RN$useAlwaysAvailableJSErrorHandling !== true) {
|
|
const default2 = _reportException.default;
|
|
const default3 = _toError.default;
|
|
default2.installConsoleErrorReporter();
|
|
if (!global.__fbDisableExceptionsManager) {
|
|
_Module47.default.setGlobalHandler((a0, a1) => {
|
|
try {
|
|
default2.handleException(a0, a1);
|
|
} catch ($e) {
|
|
console.log("Failed to print error: ", default3($e).message);
|
|
throw a0;
|
|
}
|
|
});
|
|
}
|
|
}
|