Print 'await' when for is async.

R=asgerf@google.com

Review-Url: https://codereview.chromium.org/2527253002 .
This commit is contained in:
Peter von der Ahé
2017-01-11 12:30:12 +01:00
parent f1a306f331
commit caa67601ba
+3
View File
@@ -1162,6 +1162,9 @@ class Printer extends Visitor<Null> {
visitForInStatement(ForInStatement node) {
writeIndentation();
if (node.isAsync) {
writeSpaced('await');
}
writeSpaced('for');
writeSymbol('(');
writeVariableDeclaration(node.variable, useVarKeyword: true);