(fiber: FiberNode)
| 411 | } |
| 412 | |
| 413 | function completeUnitOfWork(fiber: FiberNode) { |
| 414 | let node: FiberNode | null = fiber; |
| 415 | |
| 416 | do { |
| 417 | completeWork(node); |
| 418 | const sibling = node.sibling; |
| 419 | |
| 420 | if (sibling !== null) { |
| 421 | workInProgress = sibling; |
| 422 | return; |
| 423 | } |
| 424 | node = node.return; |
| 425 | workInProgress = node; |
| 426 | } while (node !== null); |
| 427 | } |
| 428 | |
| 429 | function handleThrow(root: FiberRootNode, thrownValue: any): void { |
| 430 | /* |
no test coverage detected