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

Function invokeGuardedCallbackImpl

docs/external/js/react-dom.development.js:103–111  ·  view source on GitHub ↗
(name, func, context, a, b, c, d, e, f)

Source from the content-addressed store, hash-verified

101 }
102
103 var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
104 var funcArgs = Array.prototype.slice.call(arguments, 3);
105
106 try {
107 func.apply(context, funcArgs);
108 } catch (error) {
109 this.onError(error);
110 }
111 };
112
113 {
114 // In DEV mode, we swap out invokeGuardedCallback for a special version

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected