(config)
| 98 | } |
| 99 | |
| 100 | function hasValidKey(config) { |
| 101 | if (__DEV__) { |
| 102 | if (hasOwnProperty.call(config, 'key')) { |
| 103 | const getter = Object.getOwnPropertyDescriptor(config, 'key').get; |
| 104 | if (getter && getter.isReactWarning) { |
| 105 | return false; |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | return config.key !== undefined; |
| 110 | } |
| 111 | |
| 112 | function defineKeyPropWarningGetter(props, displayName) { |
| 113 | if (__DEV__) { |
no outgoing calls
no test coverage detected