Files
discord-decomp/sources/by-id/module-00857.jsx
T
2026-07-27 16:20:00 +03:00

51 lines
2.5 KiB
React

/* Metro module 857; source: unknown; dependencies: [834, 850, 852, 838] */
function _fun9252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:6, offset: 0x00d612ca, size: 148 bytes, params: 8, frame: 18
const env0_0 = require;
const closure = getCurrentScope;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.getClient = getClient;
exports.getCurrentScope = closure;
exports.getGlobalScope = getGlobalScope;
exports.getIsolationScope = getIsolationScope;
exports.getTraceContextFromScope = getTraceContextFromScope;
exports.withIsolationScope = withIsolationScope_9259;
exports.withScope = withScope_9260;
}
function getGlobalScope() { // fn#9255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:331, offset: 0x00d613bc, size: 51 bytes, params: 1, frame: 13
return (require(834) /* metro dependency 834 */).getGlobalSingleton('globalScope', _fun9256);
}
function getTraceContextFromScope(a0) { // fn#9258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:617, offset: 0x00d61469, size: 92 bytes, params: 2, frame: 14
var r2;
let value = a0.getPropagationContext();
const traceId = value.traceId;
const parentSpanId = value.parentSpanId;
const object2 = {trace_id: traceId};
const propagationSpanId = value.propagationSpanId;
if (propagationSpanId) {
r2 = propagationSpanId;
} else {
value = require(838) /* metro dependency 838 */;
value = value.generateSpanId();
r2 = value;
}
object2.span_id = r2;
if (parentSpanId) {
object2.parent_span_id = parentSpanId;
}
return object2;
}
function _fun9256() { // fn#9256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:406, offset: 0x00d613ef, size: 53 bytes, params: 1, frame: 11
let value = environment.__proto__;
const Scope = (require(852) /* metro dependency 852 */).Scope;
value = Object.create(Scope.prototype, {constructor: {value: Scope}});
const scope = new Scope();
return scope instanceof Object ? scope : value;
}