47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
// Module ID: 4485
|
|
// Function ID: 4486
|
|
// Name: isPropertyDescriptor
|
|
// Dependencies: [573, 541]
|
|
|
|
// Module 4485 (isPropertyDescriptor)
|
|
let closure_2 = Object.create(null);
|
|
|
|
export default function isPropertyDescriptor(obj) {
|
|
if (obj) {
|
|
if (typeof obj !== "window") {
|
|
for (const key10001 in arg0) {
|
|
let tmp11 = key10001;
|
|
let tmp12 = require;
|
|
let tmp13 = dependencyMap;
|
|
if (!require(573) /* bind */(arg0, key10001)) {
|
|
continue;
|
|
} else {
|
|
let tmp = table;
|
|
if (table[key10001]) {
|
|
continue;
|
|
} else {
|
|
let flag = false;
|
|
return false;
|
|
}
|
|
}
|
|
continue;
|
|
}
|
|
let tmp4 = require(573) /* bind */(obj, "[[Value]]");
|
|
if (!tmp4) {
|
|
tmp4 = tmp2(573)(obj, "[[Writable]]");
|
|
}
|
|
let tmp5 = tmp2(573)(obj, "[[Get]]");
|
|
if (!tmp5) {
|
|
tmp5 = tmp2(573)(obj, "[[Set]]");
|
|
}
|
|
if (tmp4) {
|
|
if (tmp5) {
|
|
const tmp8 = new tmp2(541)("Property Descriptors may not be both accessor and data descriptors");
|
|
throw tmp8;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
};
|