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

14 lines
476 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
exports._ = exports._initializer_define_property = _initializer_define_property;
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
});
}