mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
12 lines
433 B
JavaScript
12 lines
433 B
JavaScript
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 _ };
|