58 lines
1.7 KiB
JavaScript
58 lines
1.7 KiB
JavaScript
// Metro module 4458 (f4459).
|
|
import * as _hasPropertyDescriptors from "./hasPropertyDescriptors";
|
|
import * as _defineDataProperty from "./defineDataProperty";
|
|
import * as _Module4459 from "./Module4459";
|
|
const Symbol2 = globalThis.Symbol;
|
|
let c2679_2 = typeof Symbol2 === "function" ? typeof Symbol("foo") === "symbol" : typeof Symbol2 === "function";
|
|
const toString = Object.prototype.toString;
|
|
const concat = Array.prototype.concat;
|
|
let c2679_5 = _hasPropertyDescriptors();
|
|
const defineProperty = function defineProperty(a0, a1, a2, a3) {};
|
|
const defineProperties = function defineProperties(a0, a1) {
|
|
const r11 = arguments.length > 2 ? arguments[2] : {};
|
|
const r14 = _Module4459(a1);
|
|
let r8 = r14;
|
|
if (c2679_2) {
|
|
const call = concat.call;
|
|
r8 = concat.call(r14, Object.getOwnPropertySymbols(a1));
|
|
}
|
|
const length = r8.length;
|
|
let r0 = 0;
|
|
if (0 < length) {
|
|
do {
|
|
const r37 = r8[r0];
|
|
const r39 = a1[r8[r0]];
|
|
const r41 = r11[r8[r0]];
|
|
const r1 = r0;
|
|
L24: {
|
|
if (r37 in a0) {
|
|
if (r41 === true) {
|
|
if (a0[r37] === r39) {
|
|
break L24;
|
|
}
|
|
} else {
|
|
if (typeof r41 !== "function") {
|
|
break L24;
|
|
}
|
|
const call2 = toString.call;
|
|
if (toString.call(r41) !== "[object Function]") {
|
|
break L24;
|
|
}
|
|
if (!r41()) {
|
|
break L24;
|
|
}
|
|
}
|
|
}
|
|
if (c2679_5) {
|
|
_defineDataProperty(a0, r37, r39, true);
|
|
} else {
|
|
_defineDataProperty(a0, r37, r39);
|
|
}
|
|
}
|
|
r0 = r1 + 1;
|
|
} while (r0 < r8.length);
|
|
}
|
|
};
|
|
defineProperties.supportsDescriptors = !!c2679_5;
|
|
module.exports = defineProperties;
|