We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for-of
1 parent 7a1635f commit fcb4c2bCopy full SHA for fcb4c2b
src/compiler/transformers/es6.ts
@@ -2308,8 +2308,7 @@ namespace ts {
2308
extraVariableDeclarations = [];
2309
}
2310
// hoist collected variable declarations
2311
- for (const name in currentState.hoistedLocalVariables) {
2312
- const identifier = currentState.hoistedLocalVariables[name];
+ for (const identifier of currentState.hoistedLocalVariables) {
2313
extraVariableDeclarations.push(createVariableDeclaration(identifier));
2314
2315
0 commit comments