Don't add 'await' property to ForInStatement (#504)

This commit is contained in:
Andy
2017-05-02 11:37:58 -07:00
committed by Henry Zhu
parent e81b5f8af2
commit 3a6b77f374
14 changed files with 3 additions and 14 deletions

View File

@@ -535,7 +535,9 @@ export default class StatementParser extends ExpressionParser {
} else {
this.next();
}
node.await = !!forAwait;
if (type === "ForOfStatement") {
node.await = !!forAwait;
}
node.left = init;
node.right = this.parseExpression();
this.expect(tt.parenR);