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

Function walkNative

lib/web/jshint.js:20257–20265  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

20255 }
20256
20257 function walkNative(obj) {
20258 while (!obj.identifier && typeof obj.left === "object")
20259 obj = obj.left;
20260
20261 if (obj.identifier && natives.indexOf(obj.value) >= 0 &&
20262 state.funct["(scope)"].isPredefined(obj.value)) {
20263 return obj.value;
20264 }
20265 }
20266
20267 var prototype = walkPrototype(left);
20268 if (prototype) return walkNative(prototype);

Callers 1

findNativePrototypeFunction · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected