Files
discord-decomp/sources/polyfillsNative.tsx
T
2026-07-27 16:20:00 +03:00

47 lines
1.9 KiB
TypeScript

/* Metro module 12848; source: polyfillsNative.tsx; dependencies: [3, 12849, 12919, 12937, 12940, 12943, 488, 1222, 2] */
function _fun98003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13038:6, offset: 0x02198bbe, size: 399 bytes, params: 8, frame: 17
require(3) /* metro dependency 3: Logger */;
require(12849) /* metro dependency 12849 */;
require(12919) /* metro dependency 12919 */;
require(12937) /* metro dependency 12937 */;
require(12940) /* metro dependency 12940 */;
if (typeof global.process === 'undefined') {
global.window.process = {};
}
global.window.process.nextTick = global.setImmediate;
if (global.location == null) {
global.location = {'protocol': 'https:', 'host': 'discord.com'};
}
if (!global.self) {
global.self = global;
}
if (global.window.crypto == null) {
require(12943) /* metro dependency 12943 */;
global.window.crypto = global.crypto;
}
const Buffer = global.Buffer;
if (Buffer == null) {
global.Buffer = (require(488) /* metro dependency 488 */).Buffer;
}
if (global.__reanimatedWorkletInit == null) {
global.__reanimatedWorkletInit = function() {
};
}
const Set = global.Set;
const prototype = Set.prototype;
const Map = global.Map;
const prototype2 = Map.prototype;
const closure = function() {
var Array = global.Array;
return Array.from(this);
};
prototype2.toJSON = closure;
prototype.toJSON = closure;
const TextEncoder = global.window.TextEncoder;
if (!(TextEncoder != null && global.window.TextDecoder != null)) {
require(1222) /* metro dependency 1222 */;
}
(require(2) /* metro dependency 2 */).fileFinishedImporting('polyfillsNative.tsx');
}