securityos/node_modules/@swc/helpers/esm/_initializer_define_propert...

12 lines
433 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export function _initializer_define_property(target, property, descriptor, context) {
if (!descriptor) return;
Object.defineProperty(target, property, {
enumerable: descriptor.enumerable,
configurable: descriptor.configurable,
writable: descriptor.writable,
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
});
}
export { _initializer_define_property as _ };