(fiber, errorInfo, lane)
| 18732 | var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map; |
| 18733 | |
| 18734 | function createRootErrorUpdate(fiber, errorInfo, lane) { |
| 18735 | var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null. |
| 18736 | |
| 18737 | update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property |
| 18738 | // being called "element". |
| 18739 | |
| 18740 | update.payload = { |
| 18741 | element: null |
| 18742 | }; |
| 18743 | var error = errorInfo.value; |
| 18744 | |
| 18745 | update.callback = function () { |
| 18746 | onUncaughtError(error); |
| 18747 | logCapturedError(fiber, errorInfo); |
| 18748 | }; |
| 18749 | |
| 18750 | return update; |
| 18751 | } |
| 18752 | |
| 18753 | function createClassErrorUpdate(fiber, errorInfo, lane) { |
| 18754 | var update = createUpdate(NoTimestamp, lane); |
no test coverage detected
searching dependent graphs…