MCPcopy
hub / github.com/vuejs/core / formatTrace

Function formatTrace

packages/runtime-core/src/warning.ts:111–117  ·  view source on GitHub ↗
(trace: ComponentTraceStack)

Source from the content-addressed store, hash-verified

109
110/* v8 ignore start */
111function formatTrace(trace: ComponentTraceStack): any[] {
112 const logs: any[] = []
113 trace.forEach((entry, i) => {
114 logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry))
115 })
116 return logs
117}
118
119function formatTraceEntry({ vnode, recurseCount }: TraceEntry): any[] {
120 const postfix =

Callers 1

warnFunction · 0.85

Calls 3

formatTraceEntryFunction · 0.85
forEachMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected