MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / callerFrame

Function callerFrame

source code/utils/slowOperations.ts:61–69  ·  view source on GitHub ↗
(stack: string | undefined)

Source from the content-addressed store, hash-verified

59 * Only called when an operation was actually slow — never on the fast path.
60 */
61export function callerFrame(stack: string | undefined): string {
62 if (!stack) return ''
63 for (const line of stack.split('\n')) {
64 if (line.includes('slowOperations')) continue
65 const m = line.match(/([^/\\]+?):(\d+):\d+\)?$/)
66 if (m) return ` @ ${m[1]}:${m[2]}`
67 }
68 return ''
69}
70
71/**
72 * Builds a human-readable description from tagged template arguments.

Callers 1

[Symbol.dispose]Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected