IOTConnect-Web/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
2024-05-09 09:49:52 +08:00

10 lines
301 B
JavaScript

export default function _classApplyDescriptorSet(receiver, descriptor, value) {
if (descriptor.set) {
descriptor.set.call(receiver, value);
} else {
if (!descriptor.writable) {
throw new TypeError("attempted to set read only private field");
}
descriptor.value = value;
}
}