MCPcopy Create free account
hub / github.com/RisingStack/trace-nodejs / seekTo

Function seekTo

lib/agent/tracer/cache.js:18–26  ·  view source on GitHub ↗
(node, path)

Source from the content-addressed store, hash-verified

16}
17
18function seekTo (node, path) {
19 var parent
20 for (var i = path.length - 1; i >= 0; --i) {
21 parent = node
22 node = parent.c && parent.c[path[i]]
23 if (!node) { return }
24 }
25 return node
26}
27
28function forEachTree (node, f) {
29 var top

Callers 1

cache.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected