This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
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.
20 lines
727 B
20 lines
727 B
// 26.1.6 Reflect.get(target, propertyKey [, receiver]) |
|
var $ = require('./$') |
|
, has = require('./$.has') |
|
, $export = require('./$.export') |
|
, isObject = require('./$.is-object') |
|
, anObject = require('./$.an-object'); |
|
|
|
function get(target, propertyKey/*, receiver*/){ |
|
var receiver = arguments.length < 3 ? target : arguments[2] |
|
, desc, proto; |
|
if(anObject(target) === receiver)return target[propertyKey]; |
|
if(desc = $.getDesc(target, propertyKey))return has(desc, 'value') |
|
? desc.value |
|
: desc.get !== undefined |
|
? desc.get.call(receiver) |
|
: undefined; |
|
if(isObject(proto = $.getProto(target)))return get(proto, propertyKey, receiver); |
|
} |
|
|
|
$export($export.S, 'Reflect', {get: get}); |