decord/source/4427_IsDataDescriptor.js

24 lines
599 B
JavaScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 4427
// Function ID: 38869
2026-07-20 16:05:17 +00:00
// Name: IsDataDescriptor
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 4427 (IsDataDescriptor)
2026-07-20 16:05:17 +00:00
export default function IsDataDescriptor(arg0) {
if (undefined === arg0) {
return false;
} else if (require(dependencyMap[0])(arg0)) {
let tmp6 = !tmp11(tmp12[2])(arg0, "[[Value]]");
if (tmp6) {
tmp6 = !require(dependencyMap[2])(arg0, "[[Writable]]");
}
return !tmp6;
} else {
let tmp = tmp11(tmp12[1]);
const prototype = tmp.prototype;
tmp = new tmp("Assertion failed: `Desc` must be a Property Descriptor");
throw tmp;
}
};