fix call to this.parseMaybeAssign with correct arguments (#133)

This commit is contained in:
Daniel Tschinder 2016-09-20 15:42:14 +02:00 committed by Henry Zhu
parent 8d2fdb1515
commit 9cb73d8e96

View File

@ -101,7 +101,7 @@ pp.toReferencedList = function (exprList) {
pp.parseSpread = function (refShorthandDefaultPos) {
let node = this.startNode();
this.next();
node.argument = this.parseMaybeAssign(refShorthandDefaultPos);
node.argument = this.parseMaybeAssign(false, refShorthandDefaultPos);
return this.finishNode(node, "SpreadElement");
};