forked from jshint/jshint
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes implied, scope and the keeping of variables on funct, by refactoring all scope management into an expanded block scope manager which keeps track of variable scope. As part of this it now tracks usages and resolves them at the end of a scope so that a usage can be resolved to a hoisted variable. This fixes jshint#2439, fixes jshint#2426, fixes jshint#2410, fixes jshint#2409, fixes jshint#2374, fixes jshint#2430, fixes jshint#2368, fixes jshint#2342, fixes jshint#2363, fixes jshint#2292, fixes jshint#2199, fixes jshint#2191, fixes jshint#2090, fixes jshint#1996, fixes jshint#1775, fixes jshint#1682, fixes jshint#1462, fixes jshint#1061.
- Loading branch information
Showing
17 changed files
with
1,938 additions
and
669 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,11 @@ try { | |
} catch (x) {} | ||
|
||
console.log(x); | ||
|
||
if (true) { | ||
var y; | ||
} | ||
|
||
try { | ||
throw "boom"; | ||
} catch (y) {} |
Oops, something went wrong.