(fn)
| 6472 | var hasLoggedError = false; |
| 6473 | |
| 6474 | function catchErrors(fn) { |
| 6475 | return function (arg) { |
| 6476 | try { |
| 6477 | return fn(arg); |
| 6478 | } catch (err) { |
| 6479 | if (true && !hasLoggedError) { |
| 6480 | hasLoggedError = true; |
| 6481 | warning(false, 'React DevTools encountered an error: %s', err); |
| 6482 | } |
| 6483 | } |
| 6484 | }; |
| 6485 | } |
| 6486 | |
| 6487 | function injectInternals(internals) { |
| 6488 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected