(fiber, errorInfo, lane)
| 18715 | var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map; |
| 18716 | |
| 18717 | function createRootErrorUpdate(fiber, errorInfo, lane) { |
| 18718 | var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null. |
| 18719 | |
| 18720 | update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property |
| 18721 | // being called "element". |
| 18722 | |
| 18723 | update.payload = { |
| 18724 | element: null |
| 18725 | }; |
| 18726 | var error = errorInfo.value; |
| 18727 | |
| 18728 | update.callback = function () { |
| 18729 | onUncaughtError(error); |
| 18730 | logCapturedError(fiber, errorInfo); |
| 18731 | }; |
| 18732 | |
| 18733 | return update; |
| 18734 | } |
| 18735 | |
| 18736 | function createClassErrorUpdate(fiber, errorInfo, lane) { |
| 18737 | var update = createUpdate(NoTimestamp, lane); |
no test coverage detected
searching dependent graphs…