Files
discord-decomp/sources/modules/reanimated/native/cheapWorkletShallowEqual.tsx
T
2026-07-27 16:20:00 +03:00

95 lines
3.8 KiB
TypeScript

/* Metro module 7739; source: modules/reanimated/native/cheapWorkletShallowEqual.tsx; dependencies: [2] */
function _fun61955(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7917:6, offset: 0x01b4fdca, size: 136 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: 'function cheapWorkletShallowEqual_cheapWorkletShallowEqualTsx1(a,b){if(a===b)return true;if(a==null||b==null)return false;for(const key in a){if(a[key]!==b[key])return false;}return true;}'};
const value = _fun61956();
object = {code: 'function cheapWorkletArrayShallowEqual_cheapWorkletShallowEqualTsx2(a,b){if(a===b)return true;if(a==null||b==null)return false;if(a.length!==b.length)return false;for(let i=0;i<a.length;i++){if(a[i]!==b[i])return false;}return true;}'};
const value2 = _fun61958();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/reanimated/native/cheapWorkletShallowEqual.tsx');
exports.cheapWorkletShallowEqual = value;
exports.cheapWorkletArrayShallowEqual = value2;
}
function _fun61956() { // fn#61956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7917:300, offset: 0x01b4fe52, size: 46 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var propertyName;
var propertyName2;
var property;
if (a0 === a1) {
return true;
}
if (a0 != null) {
if (a1 == null) {
return false;
}
var properties = Object.keys(a0);
var properties2 = 0;
var properties3 = properties.length;
if (properties === undefined) {
return true;
}
var r4 = properties2;
loopExit4: while (true) {
propertyName = properties[r4];
propertyName2 = r4 + 1;
if (propertyName === undefined) {
return true;
}
property = a0[propertyName];
if (property === a1[propertyName]) {
r4 = propertyName2;
continue;
}
break loopExit4;
}
}
return false;
};
closure.__closure = {};
closure.__workletHash = 760221372005;
closure.__initData = env0_0;
return closure;
}
function _fun61958() { // fn#61958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7917:860, offset: 0x01b4fec7, size: 46 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r1;
if (a0 !== a1) {
if (a0 == null) {
return false;
}
if (a1 == null) {
return false;
}
var property = a0.length;
if (property !== a1.length) {
return false;
}
var value = 0;
if (value < a0.length) {
r1 = value;
loopExit5: while (true) {
property = a0[r1];
if (property !== a1[r1]) {
return false;
}
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value < a0.length) {
r1 = value;
continue;
}
break loopExit5;
}
return true;
}
}
return true;
};
closure.__closure = {};
closure.__workletHash = 3679738010781;
closure.__initData = env0_1;
return closure;
}