Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
369 bytes
|
Line | |
---|
1 | export default function _initializerDefineProperty(target, property, descriptor, context) {
|
---|
2 | if (!descriptor) return;
|
---|
3 | Object.defineProperty(target, property, {
|
---|
4 | enumerable: descriptor.enumerable,
|
---|
5 | configurable: descriptor.configurable,
|
---|
6 | writable: descriptor.writable,
|
---|
7 | value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
---|
8 | });
|
---|
9 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.