decord/source/4480_IsGenericDescriptor.js

24 lines
616 B
JavaScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 4480
// Function ID: 39073
2026-07-20 16:05:17 +00:00
// Name: IsGenericDescriptor
2026-07-28 08:39:19 +00:00
// Dependencies: [4462, 518, 4475, 4466]
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 4480 (IsGenericDescriptor)
2026-07-20 16:05:17 +00:00
export default function IsGenericDescriptor(arg0) {
if (undefined === arg0) {
return false;
2026-07-28 08:39:19 +00:00
} else if (require(4462) /* isPropertyDescriptor */(arg0)) {
let tmp6 = !tmp11(4475)(arg0);
2026-07-20 16:05:17 +00:00
if (tmp6) {
2026-07-28 08:39:19 +00:00
tmp6 = !require(4466) /* IsDataDescriptor */(arg0);
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;
}
};