Actuallt preserve nonblock for of statements in forofs with object rest (#23122) (#23124)

This commit is contained in:
Wesley Wigham
2018-04-03 16:08:45 -07:00
committed by GitHub
parent 51b895c891
commit 1c86d01b64
5 changed files with 62 additions and 0 deletions

View File

@@ -304,6 +304,11 @@ namespace ts {
bodyLocation = node.statement;
statementsLocation = node.statement.statements;
}
else if (node.statement) {
append(statements, node.statement);
bodyLocation = node.statement;
statementsLocation = node.statement;
}
return updateForOf(
node,
node.awaitModifier,