Files
discord-decomp/sources/by-id/module-00917-functionToStringIntegration.js
T
2026-07-28 01:06:53 +03:00

93 lines
4.6 KiB
JavaScript

/* Metro module 917; source: unknown; dependencies: [831, 857, 895] */
import * as moduleValue2 from './module-00857.js'; /* Metro dependency 857 */
function _fun9822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1044:6, offset: 0x00d730c1, size: 131 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
const WeakMap = global.WeakMap;
const weakMap = new WeakMap();
exports.functionToStringIntegration = (require(895) /* metro dependency 895 */).defineIntegration(function() {
return {name: 'FunctionToString', setupOnce: _fun9824, setup: _fun9826};
});
function _functionToStringIntegration() { // fn#9823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1044:144, offset: 0x00d73144, size: 36 bytes, params: 1, frame: 3
return {name: 'FunctionToString', setupOnce: function() {
var property;
var closure;
var error;
env1_2 = global.Function.prototype.toString;
try {
property = global.Function;
property = property.prototype;
closure = _fun9825;
property.toString = closure;
} catch (error) {
}
}, setup: setup_9826};
function _functionToStringIntegrationSetupOnce() { // fn#9824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1044:225, owner: _functionToStringIntegration.setupOnce, offset: 0x00d73168, size: 57 bytes, params: 1, frame: 3
var toString_98252;
var error;
let Function = global.Function;
let prototype = Function.prototype;
const toString = prototype.toString;
try {
Function = global.Function;
prototype = Function.prototype;
toString_98252 = toString_9825;
prototype.toString = toString_98252;
} catch (error) {
}
function prototypeToString() { // fn#9825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1044:308, owner: global.Function.prototype.toString, offset: 0x00d731a1, size: 166 bytes, params: 1, frame: 20
var r3;
var r4;
var value7;
let value = this;
const value3 = 0;
const originalFunction = require(dependencyMap[value3]).getOriginalFunction(value);
const binding = env2_3;
const has = binding.has;
const getClient = moduleValue2.getClient;
reducibleJoin2: while (true) {
if (Reflect.apply(has, binding, [Reflect.apply(getClient, moduleValue2, [])])) {
if (originalFunction === undefined) {
r3 = value;
break reducibleJoin2;
}
r3 = originalFunction;
break reducibleJoin2;
}
r3 = value;
break reducibleJoin2;
}
value = arguments.length;
const Array = global.Array;
const array = new Array(value);
if (value3 < value) {
r4 = value3;
reducibleLoop3: while (true) {
array[r4] = arguments[r4];
value7 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
if (value7 < value) {
r4 = value7;
continue reducibleLoop3;
}
break reducibleLoop3;
}
}
return env2_2.apply(r3, array);
}
}
function _functionToStringIntegrationSetup(a0) { // fn#9826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1044:514, owner: _functionToStringIntegration.setup, offset: 0x00d73247, size: 27 bytes, params: 2, frame: 13
env1_3.set(a0, true);
}
}
}
global.__d(_fun9822, 917, [831, 857, 895]) /* metro module 917, dependencies: [831, 857, 895] */;