decord/source/4507_IsGenericDescriptor.js

23 lines
560 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 4507
// Function ID: 4508
2026-07-29 08:29:29 +00:00
// Name: IsGenericDescriptor
2026-07-31 08:44:05 +00:00
// Dependencies: [4489, 541, 4502, 4493]
2026-07-29 08:29:29 +00:00
2026-07-31 08:44:05 +00:00
// Module 4507 (IsGenericDescriptor)
2026-07-29 08:29:29 +00:00
export default function IsGenericDescriptor(arg0) {
if (undefined === arg0) {
return false;
2026-07-31 08:44:05 +00:00
} else if (require(4489) /* isPropertyDescriptor */(arg0)) {
const tmp7 = tmp(4502)(arg0);
2026-07-29 08:29:29 +00:00
let tmp8 = !tmp7;
if (!tmp7) {
2026-07-31 08:44:05 +00:00
tmp8 = !tmp(4493)(arg0);
2026-07-29 08:29:29 +00:00
}
return tmp8;
} else {
const tmp5 = new tmp(541)("Assertion failed: `Desc` must be a Property Descriptor");
throw tmp5;
}
};