MCPcopy Create free account
hub / github.com/Noumena-Network/code / callerFrame

Function callerFrame

src/utils/slowOperations.ts:60–68  ·  view source on GitHub ↗
(stack: string | undefined)

Source from the content-addressed store, hash-verified

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