MCPcopy Index your code
hub / github.com/microsoft/SandDance / invokeGuardedCallback

Function invokeGuardedCallback

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

* Call a function while guarding against errors that happens within it. * Returns an error if it throws, otherwise null. * * In production, this is implemented using a try-catch. The reason we don't * use a try-catch directly is so that we can swap out a different * implementation in

(name, func, context, a, b, c, d, e, f)

Source from the content-addressed store, hash-verified

281 */
282
283 function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
284 hasError = false;
285 caughtError = null;
286 invokeGuardedCallbackImpl$1.apply(reporter, arguments);
287 }
288 /**
289 * Same as invokeGuardedCallback, but instead of returning an error, it stores
290 * it in a global so it can be rethrown by `rethrowCaughtError` later.

Callers 6

safelyDetachRefFunction · 0.85
safelyCallDestroyFunction · 0.85
commitRootImplFunction · 0.85
flushPassiveEffectsImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected