Fix spread attribute parsing after merge.
This commit is contained in:
parent
0d4f1f6ce9
commit
a7d5734a59
4
acorn.js
4
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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user