decord/source/4401_defineProperty.js
2026-07-25 08:10:48 +00:00

52 lines
1.3 KiB
JavaScript

// Module ID: 4401
// Function ID: 38864
// Name: defineProperty
// Dependencies: [1381, 1382, 4402]
// Module 4401 (defineProperty)
let tmp = "function" === typeof Symbol;
if (tmp) {
const _Symbol = Symbol;
tmp = "symbol" === typeof Symbol("foo");
}
let closure_2 = tmp;
let tmp2 = require("hasPropertyDescriptors")();
let closure_5 = tmp2;
function defineProperty(arg0, arg1, arg2, arg3) {
if (arg1 in arg0) {
if (true !== arg3) {
let tmp = "function" === typeof arg3;
if (tmp) {
tmp = "[object Function]" === toString.call(arg3);
}
}
}
const tmp3 = require(1382) /* defineDataProperty */;
if (closure_5) {
tmp3(arg0, arg1, arg2, true);
} else {
tmp3(arg0, arg1, arg2);
}
}
function defineProperties(arg0, arg1) {
let length;
const tmp2 = require(4402) /* keys */(arg1);
let callResult = tmp2;
if (closure_2) {
const _Object = Object;
callResult = concat.call(tmp2, Object.getOwnPropertySymbols(arg1));
}
let num = 0;
if (0 < callResult.length) {
do {
let tmp5 = defineProperty;
let tmp6 = arg0;
let tmp7 = defineProperty(arg0, callResult[num], arg1[callResult[num]], tmp[callResult[num]]);
num = num + 1;
length = callResult.length;
} while (num < length);
}
}
defineProperties.supportsDescriptors = tmp2;
export default defineProperties;