]> code.delx.au - gnu-emacs-elpa/commitdiff
oops
authormooz <stillpedant@gmail.com>
Thu, 2 Dec 2010 14:33:20 +0000 (23:33 +0900)
committermooz <stillpedant@gmail.com>
Thu, 2 Dec 2010 14:33:20 +0000 (23:33 +0900)
js2-mode.el

index b879a26959e3ea067fd51bc330acc5175278526e..735c6a719ed032c5d1457050abdf4220cdc2825f 100644 (file)
@@ -8393,7 +8393,7 @@ Returns the parsed `js2-var-decl-node' expression node."
             init nil)
       (if (or (= tt js2-LB) (= tt js2-LC))
           ;; Destructuring assignment, e.g., var [a, b] = ...
-          (setq destructuring (js2-parse-primary-expr t)
+          (setq destructuring (js2-parse-primary-expr-lhs)
                 end (js2-node-end destructuring))
         ;; Simple variable name
         (when (js2-must-match js2-NAME "msg.bad.var")