Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
75 lines
2.1 KiB
JavaScript
75 lines
2.1 KiB
JavaScript
// Module ID: 14475
|
|
// Function ID: 14476
|
|
// Dependencies: [14424, 14476, 14473, 14433, 14456]
|
|
|
|
// Module 14475
|
|
import _mod14424 from "module_14424" /* 14424 */;
|
|
import text from "text" /* 14433 */;
|
|
import _mod14456 from "module_14456" /* 14456 */;
|
|
import _mod14473 from "module_14473" /* 14473 */;
|
|
import _mod14476 from "module_14476" /* 14476 */;
|
|
|
|
const enumerable = "enumerable";
|
|
const configurable = "configurable";
|
|
const writable = "writable";
|
|
if (_mod14424) {
|
|
if (_mod14476) {
|
|
defineProperty = function defineProperty(fn, arg1, value) {
|
|
_mod14473(fn);
|
|
const tmp2 = text(arg1);
|
|
_mod14473(value);
|
|
let tmp4 = value;
|
|
if (typeof fn === "function") {
|
|
tmp4 = value;
|
|
if ("prototype" === tmp2) {
|
|
tmp4 = value;
|
|
if ("value" in value) {
|
|
tmp4 = value;
|
|
if (writable in value) {
|
|
tmp4 = value;
|
|
if (!value[tmp5]) {
|
|
const tmp7 = getOwnPropertyDescriptor(fn, tmp2);
|
|
let tmp8 = tmp7;
|
|
if (tmp7) {
|
|
tmp8 = tmp7[tmp5];
|
|
}
|
|
tmp4 = value;
|
|
if (tmp8) {
|
|
fn[tmp2] = value.value;
|
|
const obj = { configurable: configurable in value ? value[configurable] : tmp7[configurable], enumerable: enumerable in value ? value[enumerable] : tmp7[enumerable], writable: false };
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return defineProperty(fn, tmp2, tmp4);
|
|
};
|
|
}
|
|
let defineProperty2 = defineProperty;
|
|
} else {
|
|
defineProperty2 = function defineProperty(arg0, arg1, value) {
|
|
_mod14473(arg0);
|
|
const tmp2 = text(arg1);
|
|
_mod14473(value);
|
|
if (!_mod14456) {
|
|
if (!("get" in value)) {
|
|
if (!("set" in value)) {
|
|
if ("value" in value) {
|
|
arg0[tmp2] = value.value;
|
|
}
|
|
return arg0;
|
|
}
|
|
}
|
|
const tmp8 = new TypeError("Accessors not supported");
|
|
throw tmp8;
|
|
} else {
|
|
try {
|
|
return defineProperty(arg0, tmp2, value);
|
|
} catch (err) {
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
export const f = defineProperty2;
|