(fn)
| 6344 | var hasLoggedError = false; |
| 6345 | |
| 6346 | function catchErrors(fn) { |
| 6347 | return function (arg) { |
| 6348 | try { |
| 6349 | return fn(arg); |
| 6350 | } catch (err) { |
| 6351 | if (true && !hasLoggedError) { |
| 6352 | hasLoggedError = true; |
| 6353 | warning(false, 'React DevTools encountered an error: %s', err); |
| 6354 | } |
| 6355 | } |
| 6356 | }; |
| 6357 | } |
| 6358 | |
| 6359 | function injectInternals(internals) { |
| 6360 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected