mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
17 lines
551 B
JavaScript
17 lines
551 B
JavaScript
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);
|
|
} |