Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
846 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var superPropBase = require("./superPropBase.js");
|
---|
| 2 |
|
---|
| 3 | function _get(target, property, receiver) {
|
---|
| 4 | if (typeof Reflect !== "undefined" && Reflect.get) {
|
---|
| 5 | module.exports = _get = Reflect.get;
|
---|
| 6 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
---|
| 7 | } else {
|
---|
| 8 | module.exports = _get = function _get(target, property, receiver) {
|
---|
| 9 | var base = superPropBase(target, property);
|
---|
| 10 | if (!base) return;
|
---|
| 11 | var desc = Object.getOwnPropertyDescriptor(base, property);
|
---|
| 12 |
|
---|
| 13 | if (desc.get) {
|
---|
| 14 | return desc.get.call(receiver);
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | return desc.value;
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | return _get(target, property, receiver || target);
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | module.exports = _get;
|
---|
| 27 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.