(fn)
| 7111 | var hasLoggedError = false; |
| 7112 | |
| 7113 | function catchErrors(fn) { |
| 7114 | return function (arg) { |
| 7115 | try { |
| 7116 | return fn(arg); |
| 7117 | } catch (err) { |
| 7118 | if (true && !hasLoggedError) { |
| 7119 | hasLoggedError = true; |
| 7120 | warning(false, 'React DevTools encountered an error: %s', err); |
| 7121 | } |
| 7122 | } |
| 7123 | }; |
| 7124 | } |
| 7125 | |
| 7126 | function injectInternals(internals) { |
| 7127 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { |
no test coverage detected