MCPcopy Index your code
hub / github.com/refined-github/refined-github / getStackLine

Function getStackLine

source/helpers/caller-id.ts:8–14  ·  view source on GitHub ↗
(stack: string, line: number)

Source from the content-addressed store, hash-verified

6}
7
8export function getStackLine(stack: string, line: number): string {
9 return stack
10 // Remove non-stacktrace line from array (missing in Firefox) #6032
11 .replace('Error: Get stack\n', '')
12 .split('\n')
13 .at(line) ?? warn(stack, line);
14}
15
16/**
17Get unique ID by using the line:column of the call (or its parents) as seed. Every call from the same place will return the same ID, as long as the index is set to the parents that matters to you.

Callers 2

getCallerIdFunction · 0.85
caller-id.test.tsFile · 0.85

Calls 2

warnFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected