mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 16:23:55 -05:00
Use a for-of loop for a dense array instead of iterating over keys and then indexing
This commit is contained in:
@@ -2308,8 +2308,7 @@ namespace ts {
|
||||
extraVariableDeclarations = [];
|
||||
}
|
||||
// hoist collected variable declarations
|
||||
for (const name in currentState.hoistedLocalVariables) {
|
||||
const identifier = currentState.hoistedLocalVariables[name];
|
||||
for (const identifier of currentState.hoistedLocalVariables) {
|
||||
extraVariableDeclarations.push(createVariableDeclaration(identifier));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user