classApplyDescriptorSet.js 409 B

1234567891011121314
  1. function _classApplyDescriptorSet(receiver, descriptor, value) {
  2. if (descriptor.set) {
  3. descriptor.set.call(receiver, value);
  4. } else {
  5. if (!descriptor.writable) {
  6. throw new TypeError("attempted to set read only private field");
  7. }
  8. descriptor.value = value;
  9. }
  10. }
  11. module.exports = _classApplyDescriptorSet;
  12. module.exports["default"] = module.exports, module.exports.__esModule = true;