decord/source/14954__defineProperty.js
2026-08-25 06:04:03 +00:00

21 lines
526 B
JavaScript

// Module ID: 14954
// Function ID: 14955
// Name: _defineProperty
// Dependencies: [43]
// Module 14954 (_defineProperty)
import toPropertyKey from "toPropertyKey" /* 43 */;
export default function _defineProperty(arg0, arg1, arg2) {
const tmp = toPropertyKey(arg1);
if (tmp in arg0) {
const _Object = Object;
const obj = { value: null, enumerable: true, configurable: true, writable: true };
obj[0] = arg2;
Object.defineProperty(arg0, tmp, obj);
} else {
arg0[tmp] = arg2;
}
return arg0;
};