branch: master commit 498bcca61fc9718f1d9d6eb931d9095f39e452ad Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com> Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Fix refactoring regression. --- js2-mode.el | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index e667df0..25071b7 100644 --- a/js2-mode.el +++ b/js2-mode.el @@ -8295,15 +8295,15 @@ arrow function), NAME is js2-name-node." ;; of the with object. (setf (js2-function-node-ignore-dynamic fn-node) t)) ;; dynamically bind all the per-function variables - (let ((js2-current-script-or-fn fn-node) - (js2-current-scope fn-node) - (js2-nesting-of-with 0) - (js2-end-flags 0) - js2-label-set - js2-loop-set - js2-loop-and-switch-set - (error-checking-arguments (js2-parse-function-params - function-type fn-node pos))) + (let* ((js2-current-script-or-fn fn-node) + (js2-current-scope fn-node) + (js2-nesting-of-with 0) + (js2-end-flags 0) + js2-label-set + js2-loop-set + js2-loop-and-switch-set + (error-checking-arguments (js2-parse-function-params + function-type fn-node pos))) (when (eq function-type 'FUNCTION_ARROW) (js2-must-match js2-ARROW "msg.bad.arrow.args")) (if (and (>= js2-language-version 180)