* 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)
| 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. |
no outgoing calls
no test coverage detected