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:
478 bytes
|
Line | |
---|
1 | 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 | }
|
---|
10 |
|
---|
11 | module.exports = _initializerDefineProperty;
|
---|
12 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.