Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn on early variable references in different scopes in the same fun…
…ction We used to warn on cases like function f() { if (true) { x; } var x; } but seem to have accidentally stopped warning when we introduced ES6 block scopes. This does still back off on references inside function scopes, to handle cases where functions definitions are hoisted to the beginning of a block but called later. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=210153436
- Loading branch information
1 parent
148ba99
commit bdf047c
Showing
2 changed files
with
71 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters