mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
While reviewing @poteto's PR I noticed that there were some cases of missing dependencies. I tracked it down to a bug I introduced [here](https://github.com/facebook/react-forget/commit/5b827eb85ce0b09a72e620449d1d676071c2e0b9#r100646304). Decl.id is meant to be the id of the instruction that declares the variable. We then test to see if a dependency is later than that. If the Decl.id is incorrectly too high, then we miss some dependencies thinking they aren't defined yet.