initializerDefineProperty.js 478 B

1234567891011121314
  1. var _Object$defineProperty = require("../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;