]> code.delx.au - gnu-emacs-elpa/commit
Report error for binding initializer outside destructuring
authorCarl Lei <xecycle@gmail.com>
Fri, 30 Oct 2015 13:17:16 +0000 (21:17 +0800)
committerCarl Lei <xecycle@gmail.com>
Fri, 30 Oct 2015 13:17:16 +0000 (21:17 +0800)
commit8abf087d0a66aee071fdf2dd5a249a22a0855959
treec110598801fdc93afd535a4f7e404c14915442d8
parent0555a8a399f512f460cd9e164dbe3f17da01ea9d
Report error for binding initializer outside destructuring

This reports error for both object literals and class bodies, but only
tests object literals; because if ES7 class property initializers are
added, the error no longer makes sense and needs another message,
e.g. missing semicolon after property initializer.
js2-mode.el
tests/parser.el