decord/source/4553_result.js
2026-08-05 07:35:12 +00:00

50 lines
1.5 KiB
JavaScript

// Module ID: 4553
// Function ID: 4554
// Name: result
// Dependencies: [1405, 4538, 574, 564]
// Module 4553 (result)
import hasPropertyDescriptors from "hasPropertyDescriptors";
hasPropertyDescriptors = hasPropertyDescriptors.hasArrayLengthDefineBug();
if (hasPropertyDescriptors) {
hasPropertyDescriptors = require("getEvalledConstructor");
}
let closure_4 = require("callBoundIntrinsic")("Object.prototype.propertyIsEnumerable");
export default function DefineOwnProperty(arg0, arg1, arg2, arg3, arg4, __Value__) {
if (require(564) /* flag */) {
if (hasPropertyDescriptors) {
if ("length" === arg4) {
if ("[[Value]]" in __Value__) {
if (hasPropertyDescriptors(arg3)) {
if (arg3.length !== __Value__["[[Value]]"]) {
arg3.length = __Value__["[[Value]]"];
let flag4 = arg3.length === __Value__["[[Value]]"];
}
return flag4;
}
}
}
}
require(564) /* flag */(arg3, arg4, arg2(__Value__));
flag4 = true;
const tmpResult = require(564) /* flag */;
} else if (arg0(__Value__)) {
if (__Value__["[[Configurable]]"]) {
if (__Value__["[[Writable]]"]) {
if (arg4 in arg3) {
if (callback(arg3, arg4) !== __Value__["[[Enumerable]]"]) {
return false;
}
}
__Value__ = __Value__["[[Value]]"];
arg3[arg4] = __Value__;
return arg1(arg3[arg4], __Value__);
}
}
return false;
} else {
return false;
}
};