MCPcopy Create free account
hub / github.com/RubyLouvre/anu / $getOwnPropertyDescriptor

Function $getOwnPropertyDescriptor

test/babel.js:21243–21250  ·  view source on GitHub ↗
(it, key)

Source from the content-addressed store, hash-verified

21241 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
21242 };
21243 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
21244 it = toIObject(it);
21245 key = toPrimitive(key, true);
21246 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
21247 var D = gOPD(it, key);
21248 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
21249 return D;
21250 };
21251 var $getOwnPropertyNames = function getOwnPropertyNames(it) {
21252 var names = gOPN(toIObject(it)),
21253 result = [],

Callers

nothing calls this directly

Calls 1

hasFunction · 0.70

Tested by

no test coverage detected