From 070152f6c124f79e05eff9f880fb36e6c955284f Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 10 Apr 2015 15:23:11 -0700 Subject: [PATCH] parse await expression as a unary instead of an assignment - fixes #1225 --- src/acorn/src/expression.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acorn/src/expression.js b/src/acorn/src/expression.js index 6f41722c50..9309f2e3e7 100755 --- a/src/acorn/src/expression.js +++ b/src/acorn/src/expression.js @@ -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") };