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

Function rewind

lib/agent/tracer/tracer.js:326–335  ·  view source on GitHub ↗
(history, p)

Source from the content-addressed store, hash-verified

324}
325
326function rewind (history, p) {
327 if (!p) {
328 return history
329 }
330 var i = findIndex(history, p)
331 if (i === -1) {
332 return undefined
333 }
334 return history.slice(i)
335}

Callers 1

tracer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected