_get.js 962 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _get;
  6. var _superPropBaseMjs = _interopRequireDefault(require("./_super_prop_base.js"));
  7. function _get(target, property, receiver) {
  8. return get(target, property, receiver);
  9. }
  10. function _interopRequireDefault(obj) {
  11. return obj && obj.__esModule ? obj : {
  12. default: obj
  13. };
  14. }
  15. function get(target1, property1, receiver1) {
  16. if (typeof Reflect !== "undefined" && Reflect.get) {
  17. get = Reflect.get;
  18. } else {
  19. get = function get(target, property, receiver) {
  20. var base = (0, _superPropBaseMjs).default(target, property);
  21. if (!base) return;
  22. var desc = Object.getOwnPropertyDescriptor(base, property);
  23. if (desc.get) {
  24. return desc.get.call(receiver || target);
  25. }
  26. return desc.value;
  27. };
  28. }
  29. return get(target1, property1, receiver1);
  30. }