parse await expression as a unary instead of an assignment - fixes #1225

This commit is contained in:
Sebastian McKenzie 2015-04-10 15:23:11 -07:00
parent 719fdf5ca1
commit 070152f6c1

View File

@ -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")
};