75 lines
3.1 KiB
JavaScript
75 lines
3.1 KiB
JavaScript
/* Metro module 875; source: unknown; dependencies: [836] */
|
|
function _fun9427(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1002:6, offset: 0x00d671a6, size: 78 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.handleCallbackErrors = function(a0, a1) {
|
|
var r7;
|
|
var r72;
|
|
var value;
|
|
var error;
|
|
r7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _fun9429;
|
|
r72 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _fun9430;
|
|
try {
|
|
value = a0();
|
|
} catch (error) {
|
|
a1(error);
|
|
r7();
|
|
throw error;
|
|
}
|
|
return _fun9431(value, a1, r7, r72);
|
|
};
|
|
function handleCallbackErrors(a0, a1) { // fn#9428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1002:117, offset: 0x00d671f4, size: 124 bytes, params: 3, frame: 22
|
|
var value;
|
|
var error;
|
|
const r7 = arguments.length > 2 ? arguments[2] !== undefined ? arguments[2] : function() {
|
|
} : _fun9429;
|
|
const r72 = arguments.length > 3 ? arguments[3] !== undefined ? arguments[3] : function() {
|
|
} : _fun9430;
|
|
try {
|
|
value = a0();
|
|
} catch (error) {
|
|
a1(error);
|
|
r7();
|
|
throw error;
|
|
}
|
|
return maybeHandlePromiseRejection(value, a1, r7, r72);
|
|
function maybeHandlePromiseRejection(a0, a1, a2, a3) { // fn#9431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1002:341, owner: handleCallbackErrors.maybeHandlePromiseRejection, offset: 0x00d67270, size: 98 bytes, params: 5, frame: 16
|
|
var environment;
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const env0_2 = a3;
|
|
let value = environment.__proto__;
|
|
value = require(836) /* metro dependency 836 */;
|
|
if (value.isThenable(a0)) {
|
|
return a0.then(function(a0) {
|
|
importDefault();
|
|
importAll(a0);
|
|
return a0;
|
|
}, _fun9433);
|
|
}
|
|
a2();
|
|
a3(a0);
|
|
return a0;
|
|
function _fun9433(a0) { // fn#9433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1002:460, offset: 0x00d672ed, size: 27 bytes, params: 2, frame: 12
|
|
require(a0);
|
|
importDefault();
|
|
throw a0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun9429() { // fn#9429, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
function _fun9430() { // fn#9430, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
global.__d(_fun9427, 875, [836]) /* metro module 875, dependencies: [836] */;
|