decord/source/4705_IsDataDescriptor.js
2026-08-25 06:04:03 +00:00

24 lines
621 B
JavaScript

// Module ID: 4705
// Function ID: 4706
// Name: IsDataDescriptor
// Dependencies: [4701, 541, 573]
// Module 4705 (IsDataDescriptor)
import isPropertyDescriptor from "isPropertyDescriptor" /* 4701 */;
export default function IsDataDescriptor(arg0) {
if (undefined === arg0) {
return false;
} else if (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;
}
};