mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fixes the mutable range validation in PrintHIR: when we checked the identifier scope's range we failed to allow end=start=0 cases which are also valid. While I was here, I created a separate assertion pass to check all ranges, that way we aren't relying on the printer to validate them. The pass is on for playground and tests, but disabled by default so it can't break internal apps.