Skip to content

Commit 995eb7e

Browse files
committed
Fix: Await node should have argument property (fixes eslint#160)
The await node should have an argument property instead of an expression property to be a valid estree node.
1 parent 2f86bef commit 995eb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

0 commit comments

Comments
 (0)