Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Await node should have argument property (fixes #160) #161

Merged
merged 1 commit into from
Feb 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ast-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ module.exports = function(ast, extra) {
case SyntaxKind.AwaitExpression:
assign(result, {
type: "AwaitExpression",
expression: convertChild(node.expression)
argument: convertChild(node.expression)
});
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
"type": "ExpressionStatement",
"expression": {
"type": "AwaitExpression",
"expression": {
"argument": {
"type": "Identifier",
"loc": {
"end": {
Expand Down