(stack: string, line: number)
| 6 | } |
| 7 | |
| 8 | export 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 | /** |
| 17 | Get 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. |
no test coverage detected