parse await expression as a unary instead of an assignment - fixes #1225
This commit is contained in:
parent
719fdf5ca1
commit
070152f6c1
@ -727,7 +727,7 @@ pp.parseAwait = function (node) {
|
||||
this.unexpected()
|
||||
}
|
||||
node.all = this.eat(tt.star)
|
||||
node.argument = this.parseMaybeAssign(true)
|
||||
node.argument = this.parseMaybeUnary()
|
||||
return this.finishNode(node, "AwaitExpression")
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user