MCPcopy Create free account
hub / github.com/antfu-collective/error-stack-parser-es / stackframesLiteToStackframes

Function stackframesLiteToStackframes

src/index.ts:20–31  ·  view source on GitHub ↗
(liteStackframes: StackFrameLite[])

Source from the content-addressed store, hash-verified

18export * from './types'
19
20function stackframesLiteToStackframes(liteStackframes: StackFrameLite[]): StackFrame[] {
21 return liteStackframes.map((liteStackframe) => {
22 return {
23 functionName: liteStackframe.function,
24 args: liteStackframe.args,
25 fileName: liteStackframe.file,
26 lineNumber: liteStackframe.line,
27 columnNumber: liteStackframe.col,
28 source: liteStackframe.raw,
29 }
30 })
31}
32
33/**
34 * Given an Error object, extract the most information from it.

Callers 7

parseFunction · 0.85
parseV8OrIEFunction · 0.85
parseFFOrSafariFunction · 0.85
parseOperaFunction · 0.85
parseOpera9Function · 0.85
parseOpera10Function · 0.85
parseOpera11Function · 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…