MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / serializeStack

Function serializeStack

src/repeat.js:53–58  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

51}
52
53const serializeStack = (stack) =>
54 String(stack)
55 .split('\n')
56 .filter(isStackLine)
57 .slice(0, STACK_TRACE_MAX_LENGTH)
58 .join('\n')
59
60const isStackLine = (line) => STACK_TRACE_LINE_REGEXP.test(line)
61

Callers 1

serializeErrorFunction · 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…