41 lines
2.3 KiB
React
41 lines
2.3 KiB
React
/* Metro module 7365; source: unknown; dependencies: [7366, 7373, 7374, 7397, 7369, 7386] */
|
|
function _fun59325(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7543:6, offset: 0x016e84b6, size: 93 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const closure = errorCallback;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
closure.tag = 'sentry_tracingErrorCallback';
|
|
exports.registerSpanErrorInstrumentation = registerSpanErrorInstrumentation_59327;
|
|
}
|
|
|
|
function errorCallback() { // fn#59326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7543:88, offset: 0x016e8513, size: 233 bytes, params: 1, frame: 18
|
|
var setStatus;
|
|
var object2;
|
|
const activeSpan = (require(7374) /* metro dependency 7374 */).getActiveSpan();
|
|
const r3 = activeSpan && (require(7374) /* metro dependency 7374 */).getRootSpan(activeSpan);
|
|
if (r3) {
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.log('[Tracing] Root span: ' + 'internal_error' + ' -> Global error occurred');
|
|
}
|
|
setStatus = r3.setStatus;
|
|
object2 = {};
|
|
object2.code = (require(7386) /* metro dependency 7386 */).SPAN_STATUS_ERROR;
|
|
object2.message = 'internal_error';
|
|
Reflect.apply(setStatus, r3, [object2]);
|
|
}
|
|
}
|
|
|
|
function registerSpanErrorInstrumentation_59327() { // fn#59327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7543:434, offset: 0x016e85fc, size: 79 bytes, params: 1, frame: 14
|
|
var moduleValue;
|
|
var addGlobalErrorInstrumentationHandler;
|
|
var errorCallbackBinding;
|
|
if (!env0_2) {
|
|
moduleValue = require(7366) /* metro dependency 7366 */;
|
|
addGlobalErrorInstrumentationHandler = moduleValue.addGlobalErrorInstrumentationHandler;
|
|
errorCallbackBinding = errorCallback;
|
|
Reflect.apply(addGlobalErrorInstrumentationHandler, moduleValue, [errorCallbackBinding]);
|
|
(require(7373) /* metro dependency 7373 */).addGlobalUnhandledRejectionInstrumentationHandler(errorCallbackBinding);
|
|
}
|
|
}
|
|
|