]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/js2-mode/js2-mode.el
Merge commit '5c9d8b82dddec2fab370ec8798569c7fc5698093' from js2-mode
[gnu-emacs-elpa] / packages / js2-mode / js2-mode.el
similarity index 99%
rename from js2-mode.el
rename to packages/js2-mode/js2-mode.el
index 926003d5a80a1166c088b8ff8b7494bfbd462c9f..97f3269e936889259c681ddf6cfaa6be1e992330 100644 (file)
@@ -10391,7 +10391,7 @@ EXPR is the first expression after the opening left-bracket.
 POS is the beginning of the LB token preceding EXPR.
 We should have just parsed the 'for' keyword before calling this function."
   (let ((current-scope js2-current-scope)
-        loops first filter result)
+        loops filter result)
     (unwind-protect
         (progn
           (while (js2-match-token js2-FOR)
@@ -10400,7 +10400,7 @@ We should have just parsed the 'for' keyword before calling this function."
               (push loop loops)
               (js2-parse-comp-loop loop)))
           ;; First loop takes expr scope's parent.
-          (setf (js2-scope-parent-scope (setq first (car (last loops))))
+          (setf (js2-scope-parent-scope (car (last loops)))
                 (js2-scope-parent-scope current-scope))
           ;; Set expr scope's parent to the last loop.
           (setf (js2-scope-parent-scope current-scope) (car loops))