29 lines
812 B
JavaScript
29 lines
812 B
JavaScript
// Metro module 4485 (f4486).
|
|
import * as _Module573 from "./Module573";
|
|
import * as _Module541 from "./Module541";
|
|
let c2698_2 = {
|
|
__proto__: null,
|
|
"[[Configurable]]": true,
|
|
"[[Enumerable]]": true,
|
|
"[[Get]]": true,
|
|
"[[Set]]": true,
|
|
"[[Value]]": true,
|
|
"[[Writable]]": true
|
|
};
|
|
module.exports = function isPropertyDescriptor(a0) {
|
|
if (a0 && typeof a0 === "object") {
|
|
for (const key in a0) {
|
|
if (_Module573(a0, key) && !c2698_2[key]) {
|
|
return false;
|
|
}
|
|
}
|
|
const r25 = _Module573(a0, "[[Value]]") || _Module573(a0, "[[Writable]]");
|
|
const r32 = _Module573(a0, "[[Get]]") || _Module573(a0, "[[Set]]");
|
|
if (r25 && r32) {
|
|
throw new _Module541("Property Descriptors may not be both accessor and data descriptors");
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|