classStaticPrivateFieldDestructureSet.js 524 B

12345678
  1. import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
  2. import assertClassBrand from "./assertClassBrand.js";
  3. import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
  4. export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
  5. assertClassBrand(classConstructor, receiver);
  6. classCheckPrivateStaticFieldDescriptor(descriptor, "set");
  7. return classApplyDescriptorDestructureSet(receiver, descriptor);
  8. }