blob: 0705d5fc46be67e097cd5c498c23a8d0ffa40d7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import superPropBase from "./superPropBase.js";
export default function _get() {
if (typeof Reflect !== "undefined" && Reflect.get) {
_get = Reflect.get.bind();
} else {
_get = function _get(target, property, receiver) {
var base = superPropBase(target, property);
if (!base) return;
var desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.get) {
return desc.get.call(arguments.length < 3 ? target : receiver);
}
return desc.value;
};
}
return _get.apply(this, arguments);
}
|