decord/source/14736__defineProperty.js

20 lines
491 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 14736
// Function ID: 14737
2026-07-29 08:29:29 +00:00
// Name: _defineProperty
// Dependencies: [43]
2026-08-08 06:10:11 +00:00
// Module 14736 (_defineProperty)
2026-07-29 08:29:29 +00:00
export default function _defineProperty(arg0, arg1, arg2) {
const tmp = require(43) /* 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;
};