45 lines
2.6 KiB
JavaScript
45 lines
2.6 KiB
JavaScript
/* Metro module 275; source: unknown; dependencies: [31, 183] */
|
|
import SyntheticError2 from './module-00183-SyntheticError.js'; /* Metro dependency 183 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as SyntheticErrorModule from './module-00183-SyntheticError.js'; /* Metro dependency 183 */
|
|
|
|
function _fun3426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:316:6, offset: 0x00c97381, size: 118 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
exports.onUncaughtError = onUncaughtError;
|
|
exports.onCaughtError = onCaughtError;
|
|
exports.onRecoverableError = onRecoverableError;
|
|
function getExtendedError(a0, a1) { // fn#3427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:316:100, offset: 0x00c973f7, size: 186 bytes, params: 3, frame: 17
|
|
const SyntheticError = (SyntheticErrorModule).SyntheticError;
|
|
var componentStack;
|
|
var error;
|
|
const value = a0;
|
|
const Error = global.Error;
|
|
const r2 = value instanceof Error ? value : typeof value === 'string' ? new SyntheticError(value) : new SyntheticError('Unspecified error');
|
|
try {
|
|
componentStack = a1.componentStack;
|
|
r2.componentStack = componentStack;
|
|
r2.isComponentError = true;
|
|
} catch (error) {
|
|
}
|
|
return r2;
|
|
}
|
|
|
|
function onUncaughtError(a0, a1) { // fn#3428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:316:356, offset: 0x00c974b1, size: 57 bytes, params: 3, frame: 14
|
|
(SyntheticError2).handleException(getExtendedError(a0, a1), true);
|
|
}
|
|
|
|
function onCaughtError(a0, a1) { // fn#3429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:316:461, offset: 0x00c974ea, size: 57 bytes, params: 3, frame: 14
|
|
(SyntheticError2).handleException(getExtendedError(a0, a1), false);
|
|
}
|
|
|
|
function onRecoverableError(a0, a1) { // fn#3430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:316:569, offset: 0x00c97523, size: 41 bytes, params: 3, frame: 13
|
|
global.console.warn(getExtendedError(a0, a1));
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun3426, 275, [31, 183]) /* metro module 275, dependencies: [31, 183] */;
|