decord/source/4446_IsGenericDescriptor.js

24 lines
616 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4446
2026-07-27 11:26:19 +00:00
// Function ID: 38959
2026-07-20 16:05:17 +00:00
// Name: IsGenericDescriptor
2026-07-25 08:10:48 +00:00
// Dependencies: [4428, 518, 4441, 4432]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4446 (IsGenericDescriptor)
2026-07-20 16:05:17 +00:00
export default function IsGenericDescriptor(arg0) {
if (undefined === arg0) {
return false;
2026-07-25 08:10:48 +00:00
} else if (require(4428) /* isPropertyDescriptor */(arg0)) {
let tmp6 = !tmp11(4441)(arg0);
2026-07-20 16:05:17 +00:00
if (tmp6) {
2026-07-25 08:10:48 +00:00
tmp6 = !require(4432) /* 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;
}
};