Don't add 'await' property to ForInStatement (#504)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user