web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
458 B

  1. export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
  2. if (descriptor.set) {
  3. if (!("__destrObj" in descriptor)) {
  4. descriptor.__destrObj = {
  5. set value(v) {
  6. descriptor.set.call(receiver, v);
  7. }
  8. };
  9. }
  10. return descriptor.__destrObj;
  11. } else {
  12. if (!descriptor.writable) {
  13. throw new TypeError("attempted to set read only private field");
  14. }
  15. return descriptor;
  16. }
  17. }