()
| 60 | const StackTraceContext = createContext<StackTraceContextValue | null>(null); |
| 61 | |
| 62 | const useStackTrace = () => { |
| 63 | const context = useContext(StackTraceContext); |
| 64 | if (!context) { |
| 65 | throw new Error("StackTrace components must be used within StackTrace"); |
| 66 | } |
| 67 | return context; |
| 68 | }; |
| 69 | |
| 70 | const parseStackFrame = (line: string): StackFrame => { |
| 71 | const trimmed = line.trim(); |