decord/source/4603_IsDataDescriptor.js
2026-08-08 06:10:11 +00:00

22 lines
572 B
JavaScript

// Module ID: 4603
// Function ID: 4604
// Name: IsDataDescriptor
// Dependencies: [4599, 541, 573]
// Module 4603 (IsDataDescriptor)
export default function IsDataDescriptor(arg0) {
if (undefined === arg0) {
return false;
} else if (require(4599) /* isPropertyDescriptor */(arg0)) {
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;
}
};