UNPKG

556 BJavaScriptView Raw
1import superPropBase from "./superPropBase.js";
2export default function _get(target, property, receiver) {
3 if (typeof Reflect !== "undefined" && Reflect.get) {
4 _get = Reflect.get;
5 } else {
6 _get = function _get(target, property, receiver) {
7 var base = superPropBase(target, property);
8 if (!base) return;
9 var desc = Object.getOwnPropertyDescriptor(base, property);
10
11 if (desc.get) {
12 return desc.get.call(receiver);
13 }
14
15 return desc.value;
16 };
17 }
18
19 return _get(target, property, receiver || target);
20}
\No newline at end of file