You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
551 B
17 lines
551 B
2 years ago
|
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);
|
||
|
}
|