decord/source/77__defineProperty.js

19 lines
459 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 77
// Function ID: 1473
// Name: _defineProperty
2026-07-23 10:11:24 +00:00
// Dependencies: [8]
2026-07-20 16:05:17 +00:00
// Module 77 (_defineProperty)
export default function _defineProperty(arg0, arg1, value) {
2026-07-23 10:11:24 +00:00
const tmp = require(8) /* toPropertyKey */(arg1);
2026-07-20 16:05:17 +00:00
if (tmp in arg0) {
const _Object = Object;
2026-07-23 10:11:24 +00:00
const obj = { value, enumerable: true, configurable: true, writable: true };
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg0, tmp, obj);
} else {
arg0[tmp] = value;
}
return arg0;
};