]> code.delx.au - gnu-emacs-elpa/commit
Change warning message to not conflict with spec
authorDaniel Landau <daniel@landau.fi>
Wed, 4 May 2016 11:35:55 +0000 (14:35 +0300)
committerDaniel Landau <daniel@landau.fi>
Wed, 4 May 2016 11:35:55 +0000 (14:35 +0300)
commit5ebc7b84b857d7f3c1448e7794b8900d752c09ab
treece88145dfa21b08212d8cf16c6266b6ec846fc0b
parentb576cef1e8751b6ceb7532e2ab833b551fc46860
Change warning message to not conflict with spec

The ECMAScript spec says
(http://www.ecma-international.org/ecma-262/5.1/#sec-10.5) that
declaring an already declared variable is silently ignored, so claiming
it's a TypeError is not correct. It should still be highlighted as a
warning because it's not something that any program should do and with
let redeclaration actually is a TypeError.
js2-mode.el