(fn)
| 7146 | var hasLoggedError = false; |
| 7147 | |
| 7148 | function catchErrors(fn) { |
| 7149 | return function (arg) { |
| 7150 | try { |
| 7151 | return fn(arg); |
| 7152 | } catch (err) { |
| 7153 | if (true && !hasLoggedError) { |
| 7154 | hasLoggedError = true; |
| 7155 | warning(false, 'React DevTools encountered an error: %s', err); |
| 7156 | } |
| 7157 | } |
| 7158 | }; |
| 7159 | } |
| 7160 | |
| 7161 | function injectInternals(internals) { |
| 7162 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected