[Pkg-javascript-commits] [node-acorn-jsx] 149/484: Just want to be a little clearer what is happening to the node var declared earlier.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:17 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 b7417cec8ce85e1bf1dd12b3e3b4c0cdf0d1a5ee
Author: Aparajita Fishman <aparajita at aparajita.com>
Date:   Tue Oct 1 11:28:33 2013 -0400

    Just want to be a little clearer what is happening to the node var declared earlier.
---
 acorn.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acorn.js b/acorn.js
index 0c1ece6..30f8918 100644
--- a/acorn.js
+++ b/acorn.js
@@ -1479,8 +1479,8 @@
         node.operator = tokVal;
         next();
         node.right = parseExprOp(parseMaybeUnary(), prec, noIn);
-        var node = finishNode(node, /&&|\|\|/.test(node.operator) ? "LogicalExpression" : "BinaryExpression");
-        return parseExprOp(node, minPrec, noIn);
+        var exprNode = finishNode(node, /&&|\|\|/.test(node.operator) ? "LogicalExpression" : "BinaryExpression");
+        return parseExprOp(exprNode, minPrec, noIn);
       }
     }
     return left;

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