(returnFiber: Fiber, newChild: Object)
| 320 | } |
| 321 | |
| 322 | function throwOnInvalidObjectType(returnFiber: Fiber, newChild: Object) { |
| 323 | const debugTask = getCurrentDebugTask(); |
| 324 | if (__DEV__ && debugTask !== null) { |
| 325 | debugTask.run( |
| 326 | throwOnInvalidObjectTypeImpl.bind(null, returnFiber, newChild), |
| 327 | ); |
| 328 | } else { |
| 329 | throwOnInvalidObjectTypeImpl(returnFiber, newChild); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | function warnOnFunctionTypeImpl(returnFiber: Fiber, invalidChild: Function) { |
| 334 | if (__DEV__) { |
no test coverage detected