123 lines
5.1 KiB
React
123 lines
5.1 KiB
React
/* Metro module 931; source: unknown; dependencies: [895, 830, 932] */
|
|
function _fun9907(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:6, offset: 0x00d75d5f, size: 115 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const closure = function({isBrowser, root, prefix}) {
|
|
return _fun9909;
|
|
};
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
let value = require(895) /* metro dependency 895 */;
|
|
value = value.defineIntegration(_fun9910);
|
|
exports.generateIteratee = closure;
|
|
exports.rewriteFramesIntegration = value;
|
|
}
|
|
|
|
function generateIteratee({isBrowser, root, prefix}) { // fn#9908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:850, offset: 0x00d75dd2, size: 42 bytes, params: 2, frame: 3
|
|
return _fun9909;
|
|
}
|
|
|
|
function _fun9910() { // fn#9910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:124, offset: 0x00d75f75, size: 189 bytes, params: 1, frame: 18
|
|
var value;
|
|
let r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const root = r0.root;
|
|
let prefix = r0.prefix;
|
|
prefix = !prefix ? 'app:///' : prefix;
|
|
const GLOBAL_OBJ = (require(830) /* metro dependency 830 */).GLOBAL_OBJ;
|
|
if (!r0.iteratee) {
|
|
value = generateIteratee({isBrowser: 'window' in GLOBAL_OBJ && !!GLOBAL_OBJ.window, root: root,
|
|
prefix: prefix});
|
|
}
|
|
return {name: 'RewriteFrames', processEvent: function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value.exception && global.Array.isArray(value.exception.values)) {
|
|
value = _fun9912(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}};
|
|
}
|
|
|
|
function processEvent_9911(a0) { // fn#9911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:394, offset: 0x00d76032, size: 63 bytes, params: 2, frame: 13
|
|
var r0;
|
|
let value = a0;
|
|
if (value.exception && global.Array.isArray(value.exception.values)) {
|
|
value = ((a0) => {
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var assign2;
|
|
var exception;
|
|
var exception2;
|
|
var values;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
exception = a0.exception;
|
|
exception2 = a0.exception;
|
|
values = exception2.values;
|
|
closure = _fun9913;
|
|
value = values.map(closure);
|
|
value = Reflect.apply(assign2, Object2, [{}, exception, {values: value}]);
|
|
value = Reflect.apply(assign, Object, [{}, a0, {exception: value}]);
|
|
} catch (error) {
|
|
return a0;
|
|
}
|
|
return value;
|
|
})(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function processEvent_9911_processExceptionsEvent(a0) { // fn#9912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:485, owner: processEvent_9911._processExceptionsEvent, offset: 0x00d76071, size: 101 bytes, params: 2, frame: 22
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var assign2;
|
|
var exception;
|
|
var exception2;
|
|
var values;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
exception = a0.exception;
|
|
exception2 = a0.exception;
|
|
values = exception2.values;
|
|
closure = function(a0) {
|
|
var Object = global.Object;
|
|
return Object.assign({}, a0, a0.stacktrace && ({stacktrace: global.Object.assign({}, a0.stacktrace,
|
|
{frames: a0.stacktrace == null || a0.stacktrace.frames == null ? undefined : a0.stacktrace.frames.map(_fun9914)})}));
|
|
};
|
|
value = values.map(closure);
|
|
value = Reflect.apply(assign2, Object2, [{}, exception, {values: value}]);
|
|
value = Reflect.apply(assign, Object, [{}, a0, {exception: value}]);
|
|
} catch (error) {
|
|
return a0;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function _fun9913(a0) { // fn#9913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1058:623, offset: 0x00d760d6, size: 122 bytes, params: 2, frame: 23
|
|
const Object = global.Object;
|
|
return Object.assign({}, a0, a0.stacktrace && ({stacktrace: global.Object.assign({}, a0.stacktrace,
|
|
{frames: a0.stacktrace == null || a0.stacktrace.frames == null ? undefined : a0.stacktrace.frames.map(_fun9914)})}));
|
|
}
|
|
|