Merge pull request #7899 from Microsoft/nestedBlockScopeBindings

fix scope tracking when converting loops
This commit is contained in:
Vladimir Matveev 2016-04-06 17:19:37 -07:00
commit 86516470f2
2 changed files with 2 additions and 2 deletions

View File

@ -1796,7 +1796,7 @@ namespace ts {
}
}
let loopBody = visitEachChild(node.statement, visitor, context);
let loopBody = visitNode(node.statement, visitor, isStatement);
const currentState = convertedLoopState;
convertedLoopState = outerConvertedLoopState;

View File

@ -10,7 +10,7 @@ for (; false;) {
}
//// [nestedBlockScopedBindings13.js]
var _loop_1 = function() {
var _loop_1 = function () {
var x;
(function () { return x; });
};