mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Making ReturnTerminal.value non-nullable broke our optimization to elide final value-less return statements. We now check if a return value is explicitly `undefined` and elide the value in this case, which then also propagates to allow removing the final `return` statement of a function if the value is missing.