classStaticPrivateFieldSpecSet.js 507 B

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