(fiber, errorInfo, expirationTime)
| 20828 | var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map; |
| 20829 | |
| 20830 | function createRootErrorUpdate(fiber, errorInfo, expirationTime) { |
| 20831 | var update = createUpdate(expirationTime, null); // Unmount the root by rendering null. |
| 20832 | |
| 20833 | update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property |
| 20834 | // being called "element". |
| 20835 | |
| 20836 | update.payload = { |
| 20837 | element: null |
| 20838 | }; |
| 20839 | var error = errorInfo.value; |
| 20840 | |
| 20841 | update.callback = function () { |
| 20842 | onUncaughtError(error); |
| 20843 | logError(fiber, errorInfo); |
| 20844 | }; |
| 20845 | |
| 20846 | return update; |
| 20847 | } |
| 20848 | |
| 20849 | function createClassErrorUpdate(fiber, errorInfo, expirationTime) { |
| 20850 | var update = createUpdate(expirationTime, null); |
no test coverage detected