({
offset = 0
}: GetCallStackOptions = {})
| 9 | } |
| 10 | |
| 11 | export const getCallStack = ({ |
| 12 | offset = 0 |
| 13 | }: GetCallStackOptions = {}): string[] => { |
| 14 | const frames = getFramesFromError(new Error()) |
| 15 | frames.splice(1, 1 + offset) |
| 16 | return frames |
| 17 | } |
| 18 | |
| 19 | export type LinePosition = { |
| 20 | line: number |
no test coverage detected