]> code.delx.au - gnu-emacs-elpa/commitdiff
abbreviated destructuring bind as function params
authormooz <stillpedant@gmail.com>
Mon, 15 Mar 2010 10:26:56 +0000 (19:26 +0900)
committermooz <stillpedant@gmail.com>
Mon, 15 Mar 2010 10:26:56 +0000 (19:26 +0900)
js2-mode.el

index 8cfb92137c8c1447bad85b127272f735fc3371d4..1960c224c727b9605e8b9c5dc48c00664b4f982a 100644 (file)
@@ -7379,7 +7379,7 @@ Scanner should be initialized."
             (cond
              ;; destructuring param
              ((or (= tt js2-LB) (= tt js2-LC))
-              (push (js2-parse-primary-expr) params))
+              (push (js2-parse-primary-expr t) params))
              ;; simple name
              (t
               (js2-must-match js2-NAME "msg.no.parm")