MCPcopy
hub / github.com/vitest-dev/vitest / getOriginalPosition

Function getOriginalPosition

packages/utils/src/source-map.ts:399–408  ·  view source on GitHub ↗
(
  map: DecodedMap,
  needle: Needle,
)

Source from the content-addressed store, hash-verified

397}
398
399export function getOriginalPosition(
400 map: DecodedMap,
401 needle: Needle,
402): OriginalMapping | null {
403 const result = originalPositionFor(map as any, needle)
404 if (result.column == null) {
405 return null
406 }
407 return result
408}

Callers 4

processStackTraceMethod · 0.85
BrowserTestRunnerClass · 0.85
updateLocationFunction · 0.85
parseStacktraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected