_initializer_define_property.js 504 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _initializerDefineProperty;
  6. function _initializerDefineProperty(target, property, descriptor, context) {
  7. if (!descriptor) return;
  8. Object.defineProperty(target, property, {
  9. enumerable: descriptor.enumerable,
  10. configurable: descriptor.configurable,
  11. writable: descriptor.writable,
  12. value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  13. });
  14. }