Fix spread attribute parsing after merge.

This commit is contained in:
Ingvar Stepanyan 2015-01-22 17:13:56 +02:00
parent 0d4f1f6ce9
commit a7d5734a59

View File

@ -3337,8 +3337,8 @@
function parseJSXAttribute() {
var node = startNode();
if (eat(_braceL)) {
if (tokType !== _ellipsis) unexpected();
node.argument = parseMaybeUnary().argument;
expect(_ellipsis);
node.argument = parseMaybeAssign();
expect(_braceR);
return finishNode(node, "JSXSpreadAttribute");
}