( value: unknown, )
| 193 | } |
| 194 | |
| 195 | function isDebugStackFrameRecord( |
| 196 | value: unknown, |
| 197 | ): value is { index: number; symbol: string; displayLocation: string } { |
| 198 | return ( |
| 199 | isRecord(value) && |
| 200 | typeof value.index === 'number' && |
| 201 | typeof value.symbol === 'string' && |
| 202 | typeof value.displayLocation === 'string' |
| 203 | ); |
| 204 | } |
| 205 | |
| 206 | function normalizeDebugStackFrames(items: unknown[]): unknown[] { |
| 207 | if (!items.every(isDebugStackFrameRecord)) { |
nothing calls this directly
no test coverage detected