Skip to content

Commit 76c33f8

Browse files
soda0289JamesHenry
authored andcommitted
Fix: Await node should have argument property (fixes eslint#160) (eslint#161)
1 parent 2f86bef commit 76c33f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/ast-converter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ module.exports = function(ast, extra) {
13551355
case SyntaxKind.AwaitExpression:
13561356
assign(result, {
13571357
type: "AwaitExpression",
1358-
expression: convertChild(node.expression)
1358+
argument: convertChild(node.expression)
13591359
});
13601360
break;
13611361

Diff for: tests/fixtures/typescript/basics/function-with-await.result.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
"type": "ExpressionStatement",
5252
"expression": {
5353
"type": "AwaitExpression",
54-
"expression": {
54+
"argument": {
5555
"type": "Identifier",
5656
"loc": {
5757
"end": {

0 commit comments

Comments
 (0)