(entry)
| 169 | } |
| 170 | |
| 171 | function normalizeComponentStack(entry) { |
| 172 | if ( |
| 173 | typeof entry[0] === 'string' && |
| 174 | entry[0].endsWith('%s') && |
| 175 | isLikelyAComponentStack(entry[entry.length - 1]) |
| 176 | ) { |
| 177 | const clone = entry.slice(0); |
| 178 | clone[clone.length - 1] = normalizeCodeLocInfo(entry[entry.length - 1]); |
| 179 | return clone; |
| 180 | } |
| 181 | return entry; |
| 182 | } |
| 183 | |
| 184 | const isLikelyAComponentStack = message => |
| 185 | typeof message === 'string' && |
nothing calls this directly
no test coverage detected