MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / reflectGet

Function reflectGet

lib/web/polyfill.js:1784–1795  ·  view source on GitHub ↗
(target, propertyKey/*, receiver*/)

Source from the content-addressed store, hash-verified

1782 }
1783
1784 function reflectGet(target, propertyKey/*, receiver*/){
1785 var receiver = arguments.length < 3 ? target : arguments[2]
1786 , desc = getOwnDescriptor(assertObject(target), propertyKey), proto;
1787 if(desc)return has(desc, 'value')
1788 ? desc.value
1789 : desc.get === undefined
1790 ? undefined
1791 : desc.get.call(receiver);
1792 return isObject(proto = getPrototypeOf(target))
1793 ? reflectGet(proto, propertyKey, receiver)
1794 : undefined;
1795 }
1796 function reflectSet(target, propertyKey, V/*, receiver*/){
1797 var receiver = arguments.length < 4 ? target : arguments[3]
1798 , ownDesc = getOwnDescriptor(assertObject(target), propertyKey)

Callers

nothing calls this directly

Calls 4

assertObjectFunction · 0.85
hasFunction · 0.70
isObjectFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected