(component)
| 50 | TYPE_STATICS[Memo] = MEMO_STATICS; |
| 51 | |
| 52 | function getStatics(component) { |
| 53 | // React v16.11 and below |
| 54 | if (isMemo(component)) { |
| 55 | return MEMO_STATICS; |
| 56 | } |
| 57 | |
| 58 | // React v16.12 and above |
| 59 | return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; |
| 60 | } |
| 61 | |
| 62 | const defineProperty = Object.defineProperty; |
| 63 | const getOwnPropertyNames = Object.getOwnPropertyNames; |
no outgoing calls
no test coverage detected