decord/source/4432_IsDataDescriptor.js
2026-07-27 11:26:19 +00:00

23 lines
616 B
JavaScript

// Module ID: 4432
// Function ID: 38930
// Name: IsDataDescriptor
// Dependencies: [4428, 518, 550]
// Module 4432 (IsDataDescriptor)
export default function IsDataDescriptor(arg0) {
if (undefined === arg0) {
return false;
} else if (require(4428) /* isPropertyDescriptor */(arg0)) {
let tmp6 = !tmp11(550)(arg0, "[[Value]]");
if (tmp6) {
tmp6 = !require(550) /* bind */(arg0, "[[Writable]]");
}
return !tmp6;
} else {
let tmp = tmp11(518);
const prototype = tmp.prototype;
tmp = new tmp("Assertion failed: `Desc` must be a Property Descriptor");
throw tmp;
}
};