initializerDefineProperty.js 463 B

1234567891011
  1. import _Object$defineProperty from "@babel/runtime-corejs3/core-js/object/define-property";
  2. export default function _initializerDefineProperty(target, property, descriptor, context) {
  3. if (!descriptor) return;
  4. _Object$defineProperty(target, property, {
  5. enumerable: descriptor.enumerable,
  6. configurable: descriptor.configurable,
  7. writable: descriptor.writable,
  8. value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  9. });
  10. }