From a7d5734a594e3eff6c3abf9baba343237e21fa32 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 22 Jan 2015 17:13:56 +0200 Subject: [PATCH] Fix spread attribute parsing after merge. --- acorn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acorn.js b/acorn.js index 63f9afa277..4ee74883ff 100644 --- a/acorn.js +++ b/acorn.js @@ -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"); }