Don't add 'await' property to ForInStatement (#504)
This commit is contained in:
parent
e81b5f8af2
commit
3a6b77f374
@ -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);
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 26
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 4,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 21
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "ObjectPattern",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 26
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 4,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "VariableDeclaration",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 21
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "MemberExpression",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "MemberExpression",
|
||||
"start": 5,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
"column": 16
|
||||
}
|
||||
},
|
||||
"await": false,
|
||||
"left": {
|
||||
"type": "MemberExpression",
|
||||
"start": 5,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user