(errorInfo: CapturedValue<mixed>)
| 654 | } |
| 655 | |
| 656 | export function recordEffectError(errorInfo: CapturedValue<mixed>): void { |
| 657 | if (!enableProfilerTimer || !enableProfilerCommitHooks) { |
| 658 | return; |
| 659 | } |
| 660 | if (componentEffectErrors === null) { |
| 661 | componentEffectErrors = []; |
| 662 | } |
| 663 | componentEffectErrors.push(errorInfo); |
| 664 | if (commitErrors === null) { |
| 665 | commitErrors = []; |
| 666 | } |
| 667 | commitErrors.push(errorInfo); |
| 668 | } |
| 669 | |
| 670 | export function resetCommitErrors(): void { |
| 671 | commitErrors = null; |
no test coverage detected