decord/source/4432_IsDataDescriptor.js

24 lines
616 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4432
2026-07-27 11:26:19 +00:00
// Function ID: 38930
2026-07-20 16:05:17 +00:00
// Name: IsDataDescriptor
2026-07-25 08:10:48 +00:00
// Dependencies: [4428, 518, 550]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4432 (IsDataDescriptor)
2026-07-20 16:05:17 +00:00
export default function IsDataDescriptor(arg0) {
if (undefined === arg0) {
return false;
2026-07-25 08:10:48 +00:00
} else if (require(4428) /* isPropertyDescriptor */(arg0)) {
2026-07-23 10:11:24 +00:00
let tmp6 = !tmp11(550)(arg0, "[[Value]]");
2026-07-20 16:05:17 +00:00
if (tmp6) {
2026-07-23 10:11:24 +00:00
tmp6 = !require(550) /* bind */(arg0, "[[Writable]]");
2026-07-20 16:05:17 +00:00
}
return !tmp6;
} else {
2026-07-23 10:11:24 +00:00
let tmp = tmp11(518);
2026-07-20 16:05:17 +00:00
const prototype = tmp.prototype;
tmp = new tmp("Assertion failed: `Desc` must be a Property Descriptor");
throw tmp;
}
};