Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Close synthetic scope for labeled blocks
JSHint creates a synthetic block scope in order to track labeled statements prior to parsing the statements themselves. Previously, this scope was not closed (or "unstacked") for labeled Block statements. Ensure that the synthetic scope is closed in these cases as well. Assert correct behavior via various parsing/linting mechanisms that are aware of scope.
- Loading branch information
1 parent
70f9ca2
commit 5f0f789
Showing
3 changed files
with
31 additions
and
0 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
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