Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
409 bytes
|
Line | |
---|
1 | function _classApplyDescriptorSet(receiver, descriptor, value) {
|
---|
2 | if (descriptor.set) {
|
---|
3 | descriptor.set.call(receiver, value);
|
---|
4 | } else {
|
---|
5 | if (!descriptor.writable) {
|
---|
6 | throw new TypeError("attempted to set read only private field");
|
---|
7 | }
|
---|
8 |
|
---|
9 | descriptor.value = value;
|
---|
10 | }
|
---|
11 | }
|
---|
12 |
|
---|
13 | module.exports = _classApplyDescriptorSet;
|
---|
14 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.