(fn)
| 7249 | var hasLoggedError = false; |
| 7250 | |
| 7251 | function catchErrors(fn) { |
| 7252 | return function (arg) { |
| 7253 | try { |
| 7254 | return fn(arg); |
| 7255 | } catch (err) { |
| 7256 | if (true && !hasLoggedError) { |
| 7257 | hasLoggedError = true; |
| 7258 | warning(false, 'React DevTools encountered an error: %s', err); |
| 7259 | } |
| 7260 | } |
| 7261 | }; |
| 7262 | } |
| 7263 | |
| 7264 | function injectInternals(internals) { |
| 7265 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected