From 498bcca61fc9718f1d9d6eb931d9095f39e452ad Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Mon, 8 Jun 2015 02:31:44 -0700 Subject: [PATCH] Fix refactoring regression. --- js2-mode.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index e667df007..25071b765 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) -- 2.39.2