decord/source/__polyfill/04xxx/module_4936.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

42 lines
1.1 KiB
JavaScript

// Module ID: 4936
// Function ID: 4937
// Dependencies: [1315, 1283]
// Module 4936
import _mod1315 from "module_1315" /* 1315 */;
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 (!_mod1315(arg0, key10001)) {
continue;
} else if (closure_2[key10001]) {
continue;
} else {
let flag = false;
return false;
}
continue;
}
let tmp4 = _mod1315(obj, "[[Value]]");
if (!tmp4) {
tmp4 = tmp2(1315)(obj, "[[Writable]]");
}
let tmp5 = tmp2(1315)(obj, "[[Get]]");
if (!tmp5) {
tmp5 = tmp2(1315)(obj, "[[Set]]");
}
if (tmp4) {
if (tmp5) {
const tmp8 = new tmp2(1283)("Property Descriptors may not be both accessor and data descriptors");
throw tmp8;
}
}
return true;
}
}
return false;
};