MCPcopy Create free account
hub / github.com/microsoft/SandDance / rethrowCaughtError

Function rethrowCaughtError

docs/external/js/react-dom.development.js:316–323  ·  view source on GitHub ↗

* During execution of guarded functions we will capture the first error which * we will rethrow to be handled by the top level error handler.

()

Source from the content-addressed store, hash-verified

314 */
315
316 function rethrowCaughtError() {
317 if (hasRethrowError) {
318 var error = rethrowError;
319 hasRethrowError = false;
320 rethrowError = null;
321 throw error;
322 }
323 }
324 function hasCaughtError() {
325 return hasError;
326 }

Callers 1

runEventsInBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected