MCPcopy
hub / github.com/mafintosh/why-is-node-running / captureStackTraces

Function captureStackTraces

index.js:111–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110// See: https://v8.dev/docs/stack-trace-api
111function captureStackTraces () {
112 const target = {}
113 const original = Error.prepareStackTrace
114
115 Error.prepareStackTrace = prepareStackTrace
116 Error.captureStackTrace(target, captureStackTraces)
117
118 const capturedTraces = target.stack
119 Error.prepareStackTrace = original
120
121 return capturedTraces
122}

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…