55 lines
2.2 KiB
JavaScript
55 lines
2.2 KiB
JavaScript
// Metro module 1406 (f1407).
|
|
import * as _Module541 from "./Module541";
|
|
import * as _Module542 from "./Module542";
|
|
import * as _Module564 from "./Module564";
|
|
import * as _Module562 from "./Module562";
|
|
module.exports = function defineDataProperty(a0, a1, a2) {
|
|
L52: {
|
|
if (a0) {
|
|
if (typeof a0 !== "object" && typeof a0 !== "function") {
|
|
break L52;
|
|
}
|
|
if (typeof a1 !== "string" && typeof a1 !== "symbol") {
|
|
throw new _Module541("`property` must be a string or a symbol`");
|
|
}
|
|
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
throw new _Module541("`nonEnumerable`, if provided, must be a boolean or null");
|
|
}
|
|
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
throw new _Module541("`nonWritable`, if provided, must be a boolean or null");
|
|
}
|
|
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
throw new _Module541("`nonConfigurable`, if provided, must be a boolean or null");
|
|
}
|
|
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
throw new _Module541("`loose`, if provided, must be a boolean");
|
|
}
|
|
const r15 = arguments.length > 3 ? arguments[3] : null;
|
|
const r12 = arguments.length > 4 ? arguments[4] : null;
|
|
const r49 = arguments.length > 5 ? arguments[5] : null;
|
|
const r17 = arguments.length > 6 && arguments[6];
|
|
const r55 = !!_Module542 && _Module542(a0, a1);
|
|
if (_Module564) {
|
|
_Module564(a0, a1, {
|
|
configurable: r49 === null && r55 ? r55.configurable : !r49,
|
|
enumerable: r15 === null && r55 ? r55.enumerable : !r15,
|
|
value: a2,
|
|
writable: r12 === null && r55 ? r55.writable : !r12
|
|
});
|
|
} else {
|
|
L32: {
|
|
if (!r17) {
|
|
if (!r15 && !r12 && !r49) {
|
|
break L32;
|
|
}
|
|
throw new _Module562("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
}
|
|
}
|
|
a0[a1] = a2;
|
|
}
|
|
return void 0;
|
|
}
|
|
}
|
|
throw new _Module541("`obj` must be an object or a function`");
|
|
};
|