decord/source/4445_IsGenericDescriptor.js

24 lines
616 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4445
2026-07-24 07:16:23 +00:00
// Function ID: 38947
2026-07-20 16:05:17 +00:00
// Name: IsGenericDescriptor
2026-07-23 10:11:24 +00:00
// Dependencies: [4427, 518, 4440, 4431]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4445 (IsGenericDescriptor)
2026-07-20 16:05:17 +00:00
export default function IsGenericDescriptor(arg0) {
if (undefined === arg0) {
return false;
2026-07-23 10:11:24 +00:00
} else if (require(4427) /* isPropertyDescriptor */(arg0)) {
let tmp6 = !tmp11(4440)(arg0);
2026-07-20 16:05:17 +00:00
if (tmp6) {
2026-07-23 10:11:24 +00:00
tmp6 = !require(4431) /* 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;
}
};