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);

View File

@ -42,7 +42,6 @@
"column": 26
}
},
"await": false,
"left": {
"type": "Identifier",
"start": 4,

View File

@ -42,7 +42,6 @@
"column": 31
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 31
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 21
}
},
"await": false,
"left": {
"type": "ObjectPattern",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 33
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 18
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 33
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 26
}
},
"await": false,
"left": {
"type": "Identifier",
"start": 4,

View File

@ -42,7 +42,6 @@
"column": 31
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 31
}
},
"await": false,
"left": {
"type": "VariableDeclaration",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 21
}
},
"await": false,
"left": {
"type": "MemberExpression",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 24
}
},
"await": false,
"left": {
"type": "MemberExpression",
"start": 5,

View File

@ -42,7 +42,6 @@
"column": 16
}
},
"await": false,
"left": {
"type": "MemberExpression",
"start": 5,