emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 3ec4114 30/38: Explicitly pass the variable instead of rel


From: Dmitry Gutov
Subject: [elpa] master 3ec4114 30/38: Explicitly pass the variable instead of relying on dynamic binding
Date: Wed, 28 Feb 2018 20:12:13 -0500 (EST)

branch: master
commit 3ec4114d0ce17695b5bc597f6a670d154ce3a5ee
Author: Lele Gaifax <address@hidden>
Commit: Lele Gaifax <address@hidden>

    Explicitly pass the variable instead of relying on dynamic binding
---
 js2-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index d39ef75..bd597d3 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7185,7 +7185,7 @@ key of a literal object."
                                 finally return syms))))))
     (list declared assigned object-key)))
 
-(defun js2--classify-variable (parent node)
+(defun js2--classify-variable (parent node vars)
   "Classify the single variable NODE, a js2-name-node."
   (let ((function-param (and (js2-function-node-p parent)
                              (memq node (js2-function-node-params parent)))))
@@ -7265,7 +7265,7 @@ are ignored."
        (when (and (null end-p) (js2-name-node-p node))
          (let ((parent (js2-node-parent node)))
            (when parent
-             (js2--classify-variable parent node))))
+             (js2--classify-variable parent node vars))))
        t))
     vars))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]