mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Merge pull request #7899 from Microsoft/nestedBlockScopeBindings
fix scope tracking when converting loops
This commit is contained in:
commit
86516470f2
@ -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;
|
||||
|
||||
@ -10,7 +10,7 @@ for (; false;) {
|
||||
}
|
||||
|
||||
//// [nestedBlockScopedBindings13.js]
|
||||
var _loop_1 = function() {
|
||||
var _loop_1 = function () {
|
||||
var x;
|
||||
(function () { return x; });
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user