Files
discord-decomp/polyfillsNative.tsx
T
2026-11-01 12:12:55 +02:00

43 lines
1.1 KiB
TypeScript

// Metro module 13358 (f13359).
import "./modules/debug/Logger";
import "./_bundle/Module13359";
import "./_bundle/Module13429";
import "./_bundle/Module13447";
import "./_bundle/GetOption";
import * as _TypeMismatchError from "./_bundle/TypeMismatchError";
import { Buffer } from "./_bundle/Buffer";
import * as _Module1214 from "./_bundle/Module1214";
if (typeof globalThis.process === "undefined") {
window.process = {};
}
window.process.nextTick = setImmediate;
if (global.location == null) {
global.location = {
protocol: "https:",
host: "discord.com"
};
}
if (!global.self) {
global.self = global;
}
if (window.crypto == null) {
_TypeMismatchError;
window.crypto = global.crypto;
}
if (global.Buffer == null) {
global.Buffer = Buffer;
}
if (global.__reanimatedWorkletInit == null) {
global.__reanimatedWorkletInit = () => {};
}
const prototype = Set.prototype;
const prototype2 = Map.prototype;
const toJSON = function() {
return Array.from(this);
};
prototype2.toJSON = toJSON;
prototype.toJSON = toJSON;
if (!(window.TextEncoder != null && window.TextDecoder != null)) {
_Module1214;
}