2026-08-14 17:33:39 +00:00
|
|
|
// Module ID: 4666
|
|
|
|
|
// Function ID: 4667
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: IsDataDescriptor
|
2026-08-14 17:33:39 +00:00
|
|
|
// Dependencies: [4662, 541, 573]
|
2026-07-29 08:29:29 +00:00
|
|
|
|
2026-08-14 17:33:39 +00:00
|
|
|
// Module 4666 (IsDataDescriptor)
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export default function IsDataDescriptor(arg0) {
|
|
|
|
|
if (undefined === arg0) {
|
|
|
|
|
return false;
|
2026-08-14 17:33:39 +00:00
|
|
|
} else if (require(4662) /* isPropertyDescriptor */(arg0)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp7 = tmp(573)(arg0, "[[Value]]");
|
|
|
|
|
let tmp8 = !tmp7;
|
|
|
|
|
if (!tmp7) {
|
|
|
|
|
tmp8 = !tmp(573)(arg0, "[[Writable]]");
|
|
|
|
|
}
|
|
|
|
|
return !tmp8;
|
|
|
|
|
} else {
|
|
|
|
|
const tmp5 = new tmp(541)("Assertion failed: `Desc` must be a Property Descriptor");
|
|
|
|
|
throw tmp5;
|
|
|
|
|
}
|
|
|
|
|
};
|