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

51 lines
1.5 KiB
JavaScript

// Metro module 123 (f124).
import * as _defineLazyObjectProperty from "./defineLazyObjectProperty";
export function polyfillObjectProperty(a0, a1, a2) {
let enumerable, writable;
const ownPropertyDescriptor = Object.getOwnPropertyDescriptor(a0, a1);
const r11 = ownPropertyDescriptor || {};
L7: {
L6: {
enumerable = r11.enumerable;
writable = r11.writable;
const configurable = r11.configurable;
if (ownPropertyDescriptor) {
if (configurable !== void 0 && configurable) {
break L6;
}
console.error("Failed to set polyfill. " + a1 + " is not configurable.");
break L7;
}
}
_defineLazyObjectProperty.default(a0, a1, {
get: a2,
enumerable: enumerable !== false,
writable: writable !== false
});
}
}
export function polyfillGlobal(a0, a1) {
let enumerable, writable;
const ownPropertyDescriptor = Object.getOwnPropertyDescriptor(global, a0);
const r11 = ownPropertyDescriptor || {};
L7: {
L6: {
enumerable = r11.enumerable;
writable = r11.writable;
const configurable = r11.configurable;
if (ownPropertyDescriptor) {
if (configurable !== void 0 && configurable) {
break L6;
}
console.error("Failed to set polyfill. " + a0 + " is not configurable.");
break L7;
}
}
_defineLazyObjectProperty.default(global, a0, {
get: a1,
enumerable: enumerable !== false,
writable: writable !== false
});
}
}