get.js 828 B

1234567891011121314151617181920212223
  1. var superPropBase = require("./superPropBase.js");
  2. function _get() {
  3. if (typeof Reflect !== "undefined" && Reflect.get) {
  4. module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports;
  5. } else {
  6. module.exports = _get = function _get(target, property, receiver) {
  7. var base = superPropBase(target, property);
  8. if (!base) return;
  9. var desc = Object.getOwnPropertyDescriptor(base, property);
  10. if (desc.get) {
  11. return desc.get.call(arguments.length < 3 ? target : receiver);
  12. }
  13. return desc.value;
  14. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15. }
  16. return _get.apply(this, arguments);
  17. }
  18. module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;