93 lines
3.4 KiB
JavaScript
93 lines
3.4 KiB
JavaScript
/* Metro module 955; source: unknown; dependencies: [857, 828, 849, 877] */
|
|
function _fun10103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1082:6, offset: 0x00d7d09b, 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.captureError = captureError;
|
|
function captureError(a0, a1, a2) { // fn#10104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1082:106, offset: 0x00d7d0e9, size: 271 bytes, params: 4, frame: 22
|
|
var r4;
|
|
var r10;
|
|
var property;
|
|
var moduleValue;
|
|
var getClient;
|
|
var value3;
|
|
var moduleValue2;
|
|
var activeSpan;
|
|
var value5;
|
|
var isRecording2;
|
|
var setStatus;
|
|
var moduleValue3;
|
|
var SPAN_STATUS_ERROR;
|
|
var moduleValue4;
|
|
var captureException;
|
|
var Object;
|
|
var assign;
|
|
var error;
|
|
let value = a1;
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = dependencyMap[0];
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
getClient = moduleValue.getClient;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(getClient, moduleValue, []);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
property = dependencyMap[1];
|
|
moduleValue2 = require(property);
|
|
activeSpan = moduleValue2.getActiveSpan();
|
|
value5 = activeSpan != null;
|
|
if (value5) {
|
|
isRecording2 = activeSpan.isRecording();
|
|
r4 = isRecording2;
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
if (r4) {
|
|
setStatus = activeSpan.setStatus;
|
|
moduleValue3 = require(dependencyMap[2]);
|
|
SPAN_STATUS_ERROR = moduleValue3.SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, activeSpan, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
}
|
|
property = dependencyMap[3];
|
|
moduleValue4 = require(property);
|
|
captureException = moduleValue4.captureException;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
r10 = value || 'handler_execution';
|
|
value = Reflect.apply(assign, Object, [{error_type: r10}, a2]);
|
|
Reflect.apply(captureException, moduleValue4, [a0, {mechanism: {'type': 'auto.ai.mcp_server',
|
|
'handled': false,
|
|
data: value}}]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun10103, 955, [857, 828, 849, 877]) /* metro module 955, dependencies: [857, 828, 849, 877] */;
|