Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// Module ID: 4938
|
|
// Function ID: 4939
|
|
// Dependencies: [1314, 1282]
|
|
|
|
// Module 4938
|
|
import _mod1314 from "module_1314" /* 1314 */;
|
|
|
|
let closure_2 = Object.assign({ "[[Configurable]]": true, "[[Enumerable]]": true, "[[Get]]": true, "[[Set]]": true, "[[Value]]": true, "[[Writable]]": true });
|
|
|
|
export default function isPropertyDescriptor(obj) {
|
|
if (obj) {
|
|
if (typeof obj === "object") {
|
|
for (const key10001 in arg0) {
|
|
if (!_mod1314(arg0, key10001)) {
|
|
continue;
|
|
} else if (closure_2[key10001]) {
|
|
continue;
|
|
} else {
|
|
let flag = false;
|
|
return false;
|
|
}
|
|
continue;
|
|
}
|
|
let tmp4 = _mod1314(obj, "[[Value]]");
|
|
if (!tmp4) {
|
|
tmp4 = tmp2(1314)(obj, "[[Writable]]");
|
|
}
|
|
let tmp5 = tmp2(1314)(obj, "[[Get]]");
|
|
if (!tmp5) {
|
|
tmp5 = tmp2(1314)(obj, "[[Set]]");
|
|
}
|
|
if (tmp4) {
|
|
if (tmp5) {
|
|
const tmp8 = new tmp2(1282)("Property Descriptors may not be both accessor and data descriptors");
|
|
throw tmp8;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
};
|