(l: string, r: string, path: string, depth: number)
| 258 | loc: string, |
| 259 | ): void { |
| 260 | function error(l: string, r: string, path: string, depth: number) { |
| 261 | const str = `${fnName}:${loc} [${kind}] ${variableName}${path} changed from ${l} to ${r} at depth ${depth}`; |
| 262 | if (seenErrors.has(str)) { |
| 263 | return; |
| 264 | } |
| 265 | seenErrors.add(str); |
| 266 | console.error(str); |
| 267 | } |
| 268 | const depthLimit = 2; |
| 269 | function recur(oldValue: any, newValue: any, path: string, depth: number) { |
| 270 | if (depth > depthLimit) { |
no test coverage detected