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

104 lines
4.6 KiB
JavaScript

/* Metro module 555; source: unknown; dependencies: [518, 552] */
function _fun6695(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:6, offset: 0x00d05f25, size: 43 bytes, params: 8, frame: 2
const env0_0 = require;
const listGetNode = function(a0, a1, a2) {
var r2;
var r5;
var value = a0;
var next = value.next;
if (next != null) {
r2 = value;
r5 = next;
loopExit1: while (true) {
if (r5.key === a1) {
r2.next = r5.next;
if (a2) {
continue;
}
r5.next = value.next;
value.next = r5;
return r5;
}
next = r5.next;
if (next != null) {
r2 = r5;
r5 = next;
continue;
}
break loopExit1;
}
}
};
module.exports = function() {
return {assert: _fun6698, delete: _fun6699, get: _fun6700, has: _fun6701, set: _fun6702};
};
function exports_6697() { // fn#6697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:187, offset: 0x00d05fa7, size: 56 bytes, params: 1, frame: 3
return {assert: assert_6698, delete: exports_6697_delete, get: get_6700, has: has_6701, set: set_6702};
function exports_6697Assert(a0) { // fn#6698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:233, owner: exports_6697.assert, offset: 0x00d05fdf, size: 100 bytes, params: 2, frame: 14
const binding = env0_1;
if (binding.has(a0)) {
return undefined;
}
let value = environment.__proto__;
value = require(518) /* metro dependency 518 */;
value = new value('Side channel does not contain ' + (require(552) /* metro dependency 552 */)(a0));
throw value;
}
function exports_6697_delete(a0) { // fn#6699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:337, owner: exports_6697._delete, offset: 0x00d06043, size: 80 bytes, params: 2, frame: 18
let binding = env0_0;
const r4 = binding && env0_0.next;
binding = env0_0;
const r0 = binding ? listGetNode(binding, a0, true) : undefined;
if (r0 && r4 && r4 === r0) {
}
return !!r0;
}
function exports_6697Get(a0) { // fn#6700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:468, owner: exports_6697.get, offset: 0x00d06093, size: 46 bytes, params: 2, frame: 14
var r0;
var value2;
const binding = env0_0;
let value = undefined;
if (binding) {
value2 = environment.__proto__;
value = listGetNode(binding, a0);
r0 = value && value.value;
} else {
r0 = value;
}
return r0;
}
function exports_6697Has(a0) { // fn#6701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:562, owner: exports_6697.has, offset: 0x00d060c1, size: 42 bytes, params: 2, frame: 14
var r0;
const binding = env0_0;
let value = !!binding;
if (binding) {
value = environment.__proto__;
value = !!listGetNode(binding, a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
function exports_6697Set(a0, a1) { // fn#6702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:605:638, owner: exports_6697.set, offset: 0x00d060eb, size: 85 bytes, params: 3, frame: 15
env0_0 = !env0_0 ? {next: undefined} : env0_0;
const binding = env0_0;
let value = environment.__proto__;
value = listGetNode(binding, a0);
if (value) {
value.value = a1;
} else {
binding.next = {key: a0, next: binding.next, value: a1};
}
}
}
}
global.__d(_fun6695, 555, [518, 552]) /* metro module 555, dependencies: [518, 552] */;