MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseStackFramePath

Function parseStackFramePath

packages/testkit/src/snapshot.ts:42–56  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

40}
41
42function parseStackFramePath(line: string): string | null {
43 const trimmed = line.trim();
44 const fromParen = trimmed.match(/\((.+):\d+:\d+\)$/u);
45 const fromBare = trimmed.match(/at (.+):\d+:\d+$/u);
46 const raw = fromParen?.[1] ?? fromBare?.[1];
47 if (!raw) return null;
48 if (raw.startsWith("file://")) {
49 try {
50 return fileURLToPath(raw);
51 } catch {
52 return null;
53 }
54 }
55 return raw;
56}
57
58function isInternalHelperFrame(framePath: string): boolean {
59 const base = path.basename(framePath);

Callers 1

resolveCallerFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected