Files
discord-decomp/_bundle/Module5047.js
T
2026-11-01 12:12:55 +02:00

93 lines
2.7 KiB
JavaScript

// Metro module 5047 (f5048).
const getOwnPropertySymbols = Object.getOwnPropertySymbols;
const hasOwnProperty = Object.prototype.hasOwnProperty;
const propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
module.exports = (function shouldUseNative() {
let r58;
L10: {
L9: {
L8: {
try {
if (Object.assign) {
const string = new String("abc");
string[5] = "de";
if (Object.getOwnPropertyNames(string)[0] === "5") {
break L10;
}
let c14583_1;
const r25 = {};
let c14583_0 = r25;
let r27 = 0;
while (true) {
const r9 = String;
const r29 = r27;
r25["_" + r9.fromCharCode(r29)] = r29;
const r32 = r29 + 1;
r27 = r32;
if (!(r32 < 10)) {
if (Object.getOwnPropertyNames(r25).map(function(item) {
return c14583_0[item];
}).join("") !== "0123456789") {
break L9;
}
const r43 = {};
c14583_1 = r43;
"abcdefghijklmnopqrst".split("").forEach(function(item) {
c14583_1[item] = item;
});
r58 = Object.keys({
...r43
}).join("");
break L8;
}
}
}
} catch ($e) {
return false;
}
return false;
}
return r58 === "abcdefghijklmnopqrst";
}
return false;
}
return false;
})() ? Object.assign : function(a0, a1) {
if (a0 == null) {
throw new TypeError("Object.assign cannot be called with null or undefined");
}
const r22 = Object(a0);
const r25 = 1 < arguments.length;
let r3 = 1;
if (r25) {
do {
const r27 = Object(arguments[r3]);
const r5 = r3;
for (const key in r27) {
const call = hasOwnProperty.call;
if (hasOwnProperty.call(r27, key)) {
r22[key] = r27[key];
}
}
if (getOwnPropertySymbols) {
const ownPropertySymbols = getOwnPropertySymbols(r27);
const r34 = 0 < ownPropertySymbols.length;
let r35 = 0;
if (r34) {
do {
const call2 = propertyIsEnumerable.call;
const r38 = ownPropertySymbols[r35];
const r39 = r35;
if (propertyIsEnumerable.call(r27, r38)) {
r22[ownPropertySymbols[r39]] = r27[ownPropertySymbols[r39]];
}
r35 = r39 + 1;
} while (r35 < ownPropertySymbols.length);
}
}
r3 = r5 + 1;
} while (r3 < arguments.length);
}
return r22;
};