classStaticPrivateFieldSpecSet.js 546 B

123456789
  1. import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
  2. import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
  3. import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
  4. export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
  5. classCheckPrivateStaticAccess(receiver, classConstructor);
  6. classCheckPrivateStaticFieldDescriptor(descriptor, "set");
  7. classApplyDescriptorSet(receiver, descriptor, value);
  8. return value;
  9. }