[Pkg-javascript-commits] [node-acorn-jsx] 206/484: Fixed parsing `x => 1, 2` like expressions.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:29 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 16b9ba5db0608d60359c7a451232d0a177d39d77
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Thu Jul 24 01:55:34 2014 +0300

    Fixed parsing `x => 1, 2` like expressions.
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index 19a2bbc..43500b6 100644
--- a/acorn.js
+++ b/acorn.js
@@ -1886,7 +1886,7 @@
     }
 
     var isExpression = tokType !== _braceL;
-    var body = isExpression ? parseExpression() : parseBlock(true);
+    var body = isExpression ? parseExpression(true) : parseBlock(true);
 
     node.id = null;
     node.params = params;

-- 
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