(error: unknown)
| 20 | |
| 21 | const FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/; |
| 22 | const CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m; |
| 23 | const SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code\])?$/; |
| 24 | |
| 25 | export const parseStack = (stackString: string, options?: ParseOptions): StackFrame[] => { |
| 26 | if (options?.includeInElement !== false) { |
| 27 | const lines = stackString.split("\n"); |
| 28 | const frames: StackFrame[] = []; |
| 29 | for (const rawLine of lines) { |
| 30 | if (/^\s*at\s+/.test(rawLine)) { |
| 31 | if (CHROME_IE_STACK_REGEXP.test(rawLine)) frames.push(parseV8Line(rawLine)); |
no outgoing calls
no test coverage detected
searching dependent graphs…