X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/5c9d8b82dddec2fab370ec8798569c7fc5698093:/js2-mode.el..5ffca32900b224805cb6e679798d53d999b1dcc0:/packages/js2-mode/js2-mode.el diff --git a/js2-mode.el b/packages/js2-mode/js2-mode.el similarity index 99% rename from js2-mode.el rename to packages/js2-mode/js2-mode.el index 926003d5a..97f3269e9 100644 --- a/js2-mode.el +++ b/packages/js2-mode/js2-mode.el @@ -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))