decord/source/14650__defineProperty.js

20 lines
491 B
JavaScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 14650
// Function ID: 14651
2026-07-29 08:29:29 +00:00
// Name: _defineProperty
// Dependencies: [43]
2026-08-06 08:05:19 +00:00
// Module 14650 (_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;
};