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 | }
|
11 |
|
12 | return descriptor.__destrObj;
|
13 | } else {
|
14 | if (!descriptor.writable) {
|
15 | throw new TypeError("attempted to set read only private field");
|
16 | }
|
17 |
|
18 | return descriptor;
|
19 | }
|
20 | } |
\ | No newline at end of file |