[Pkg-javascript-commits] [node-acorn-jsx] 408/484: Fix spread attribute parsing after merge.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:21:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit a7d5734a594e3eff6c3abf9baba343237e21fa32
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Thu Jan 22 17:13:56 2015 +0200
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 63f9afa..4ee7488 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");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list