]> code.delx.au - gnu-emacs-elpa/commit
Support object destructuring inside arrow function args
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 5 Nov 2014 09:45:15 +0000 (11:45 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 5 Nov 2014 09:46:32 +0000 (11:46 +0200)
commit87cfd408316d1e6712f167e74dde9832624fb709
treefe0d7b6de9da9fa20b56332279d04be44fc8c583
parent2e1d701794feef52ed7b512509d80b3aefcffd0d
Support object destructuring inside arrow function args

* js2-mode.el (js2-parse-plain-property): Don't move too far when
there's no colon.
(js2-parse-assign-expr): Restore the previous value of
`js2-parsed-errors' after arrow token is found.

Fixes #167
js2-mode.el
tests/parser.el