initializerDefineProperty.js 576 B

123456789101112131415
  1. var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
  2. 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. }
  11. module.exports = _initializerDefineProperty;
  12. module.exports["default"] = module.exports, module.exports.__esModule = true;