decord/source/4562_OrdinaryDefineOwnProperty.js
2026-08-05 07:35:12 +00:00

64 lines
2.5 KiB
JavaScript

// Module ID: 4562
// Function ID: 4563
// Name: OrdinaryDefineOwnProperty
// Dependencies: [4499, 541, 4546, 4550, 542, 4563, 562, 4555, 4551, 4564, 4565]
// Module 4562 (OrdinaryDefineOwnProperty)
export default function OrdinaryDefineOwnProperty(arg0, arg1, __Writable__) {
if (require(4499) /* isObject */(arg0)) {
if (tmp(4546)(arg1)) {
if (tmp(4550)(__Writable__)) {
if (tmp(542)) {
const tmp30 = tmp(542)(arg0, arg1);
let tmp31 = tmp30;
if (tmp30) {
tmp31 = tmp(4551)(tmp30);
}
return tmp(4565)(arg0, arg1, tmp(4564)(arg0), __Writable__, tmp31);
} else if (tmp(4563)(__Writable__)) {
const tmp28 = new tmp(562)("This environment does not support accessor property descriptors.");
throw tmp28;
} else {
let tmp17 = !(arg1 in arg0) && __Writable__["[[Writable]]"] && __Writable__["[[Enumerable]]"] && __Writable__["[[Configurable]]"];
if (tmp17) {
tmp17 = "[[Value]]" in __Writable__;
}
let tmp18 = arg1 in arg0;
if (tmp18) {
tmp18 = !("[[Configurable]]" in __Writable__) || __Writable__["[[Configurable]]"];
const tmp19 = !("[[Configurable]]" in __Writable__) || __Writable__["[[Configurable]]"];
}
if (tmp18) {
tmp18 = !("[[Enumerable]]" in __Writable__) || __Writable__["[[Enumerable]]"];
const tmp20 = !("[[Enumerable]]" in __Writable__) || __Writable__["[[Enumerable]]"];
}
if (tmp18) {
tmp18 = !("[[Writable]]" in __Writable__) || __Writable__["[[Writable]]"];
const tmp21 = !("[[Writable]]" in __Writable__) || __Writable__["[[Writable]]"];
}
if (tmp18) {
tmp18 = "[[Value]]" in __Writable__;
}
if (!tmp17) {
if (!tmp18) {
const tmp24 = new tmp(562)("This environment does not support defining non-writable, non-enumerable, or non-configurable properties");
throw tmp24;
}
}
arg0[arg1] = __Writable__["[[Value]]"];
return tmp(4555)(arg0[arg1], __Writable__["[[Value]]"]);
}
} else {
const tmp15 = new tmp(541)("Assertion failed: Desc must be a Property Descriptor");
throw tmp15;
}
} else {
const tmp10 = new tmp(541)("Assertion failed: P must be a Property Key");
throw tmp10;
}
} else {
const tmp5 = new tmp(541)("Assertion failed: O must be an Object");
throw tmp5;
}
};