(object: any, property: string)
| 175 | |
| 176 | // This is a safety mechanism to protect against rogue getters and Proxies. |
| 177 | function getProperty(object: any, property: string) { |
| 178 | try { |
| 179 | return object[property]; |
| 180 | } catch (err) { |
| 181 | // Intentionally ignore. |
| 182 | return undefined; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | export function performReactRefresh(): RefreshUpdate | null { |
| 187 | if (!__DEV__) { |
no outgoing calls
no test coverage detected