Files
2026-07-28 01:06:53 +03:00

140 lines
5.5 KiB
JavaScript

/* Metro module 829; source: unknown; dependencies: [830, 831] */
function _fun9016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:956:6, offset: 0x00d5b1e0, size: 98 bytes, params: 8, frame: 17
const env0_0 = require;
const unwrapScopeFromWeakRef = function(a0) {
var value;
var error;
if (a0) {
if (typeof a0 !== 'object') {
return a0;
}
if ('deref' in a0) {
if (typeof a0.deref === 'function') {
try {
value = a0.deref();
} catch (error) {
return undefined;
}
return value;
}
return a0;
}
return a0;
}
};
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.getCapturedScopesOnSpan = function(a0) {
var object = {scope: a0._sentryScope};
object.isolationScope = unwrapScopeFromWeakRef(a0._sentryIsolationScope);
return object;
};
exports.setCapturedScopesOnSpan = setCapturedScopesOnSpan;
function setCapturedScopesOnSpan(a0, a1, a2) { // fn#9019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:956:449, offset: 0x00d5b2c4, size: 169 bytes, params: 4, frame: 22
var r6;
var value;
var moduleValue;
var addNonEnumerableProperty;
var value2;
var property;
var GLOBAL_OBJ;
var WeakRef;
var prototype;
var weakRef;
var error;
reducibleJoin19: while (true) {
if (a0) {
value = environment;
moduleValue = require(dependencyMap[1]);
addNonEnumerableProperty = moduleValue.addNonEnumerableProperty;
value2 = a2;
reducibleJoin3: while (true) {
reduciblePort18: while (true) {
exceptionLanding17: while (true) {
try {
} catch (error) {
break exceptionLanding17;
}
break reducibleJoin3;
}
r6 = value2;
break reduciblePort18;
}
Reflect.apply(addNonEnumerableProperty, moduleValue, [a0, '_sentryIsolationScope', r6]);
value = require(dependencyMap[1]);
addNonEnumerableProperty = value.addNonEnumerableProperty;
Reflect.apply(addNonEnumerableProperty, value, [a0, '_sentryScope', a1]);
break reducibleJoin19;
}
try {
} catch (error) {
break exceptionLanding17;
}
try {
property = dependencyMap[0];
} catch (error) {
break exceptionLanding17;
}
try {
value = require(property);
} catch (error) {
break exceptionLanding17;
}
try {
GLOBAL_OBJ = value.GLOBAL_OBJ;
} catch (error) {
break exceptionLanding17;
}
try {
WeakRef = GLOBAL_OBJ.WeakRef;
} catch (error) {
break exceptionLanding17;
}
try {
value = typeof WeakRef === 'function';
} catch (error) {
break exceptionLanding17;
}
reducibleJoin18: while (true) {
if (value) {
try {
prototype = WeakRef.prototype;
} catch (error) {
break exceptionLanding17;
}
try {
} catch (error) {
break exceptionLanding17;
}
try {
weakRef = new WeakRef();
} catch (error) {
break exceptionLanding17;
}
try {
value = weakRef instanceof Object ? weakRef : value;
} catch (error) {
break exceptionLanding17;
}
r6 = value;
break reducibleJoin18;
}
r6 = value2;
break reducibleJoin18;
}
Reflect.apply(addNonEnumerableProperty, moduleValue, [a0, '_sentryIsolationScope', r6]);
value = require(dependencyMap[1]);
addNonEnumerableProperty = value.addNonEnumerableProperty;
Reflect.apply(addNonEnumerableProperty, value, [a0, '_sentryScope', a1]);
break reducibleJoin19;
}
break reducibleJoin19;
}
}
}
global.__d(_fun9016, 829, [830, 831]) /* metro module 829, dependencies: [830, 831] */;