mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
27 lines
846 B
JavaScript
27 lines
846 B
JavaScript
|
var superPropBase = require("./superPropBase.js");
|
||
|
|
||
|
function _get(target, property, receiver) {
|
||
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
||
|
module.exports = _get = Reflect.get;
|
||
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
||
|
} else {
|
||
|
module.exports = _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(receiver);
|
||
|
}
|
||
|
|
||
|
return desc.value;
|
||
|
};
|
||
|
|
||
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
||
|
}
|
||
|
|
||
|
return _get(target, property, receiver || target);
|
||
|
}
|
||
|
|
||
|
module.exports = _get;
|
||
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|