(value, source)
| 23162 | } |
| 23163 | |
| 23164 | function createCapturedValue(value, source) { |
| 23165 | // If the value is an error, call this function immediately after it is thrown |
| 23166 | // so the stack is accurate. |
| 23167 | return { |
| 23168 | value: value, |
| 23169 | source: source, |
| 23170 | stack: getStackByFiberInDevAndProd(source) |
| 23171 | }; |
| 23172 | } |
| 23173 | |
| 23174 | function logCapturedError(capturedError) { |
| 23175 |
no test coverage detected