UNPKG

1.01 kBJavaScriptView Raw
1var _Reflect$get = require("core-js/library/fn/reflect/get.js");
2var _Object$getOwnPropertyDescriptor = require("core-js/library/fn/object/get-own-property-descriptor.js");
3var superPropBase = require("./superPropBase.js");
4function _get() {
5 if (typeof Reflect !== "undefined" && _Reflect$get) {
6 module.exports = _get = _Reflect$get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
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 if (desc.get) {
13 return desc.get.call(arguments.length < 3 ? target : receiver);
14 }
15 return desc.value;
16 }, module.exports.__esModule = true, module.exports["default"] = module.exports;
17 }
18 return _get.apply(this, arguments);
19}
20module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
\No newline at end of file