(fn)
| 7204 | var hasLoggedError = false; |
| 7205 | |
| 7206 | function catchErrors(fn) { |
| 7207 | return function (arg) { |
| 7208 | try { |
| 7209 | return fn(arg); |
| 7210 | } catch (err) { |
| 7211 | if (true && !hasLoggedError) { |
| 7212 | hasLoggedError = true; |
| 7213 | warning(false, 'React DevTools encountered an error: %s', err); |
| 7214 | } |
| 7215 | } |
| 7216 | }; |
| 7217 | } |
| 7218 | |
| 7219 | function injectInternals(internals) { |
| 7220 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected