emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 5ebc7b8 099/110: Change warning message to not conflict wi


From: Dmitry Gutov
Subject: [elpa] master 5ebc7b8 099/110: Change warning message to not conflict with spec
Date: Thu, 23 Jun 2016 01:13:03 +0000 (UTC)

branch: master
commit 5ebc7b84b857d7f3c1448e7794b8900d752c09ab
Author: Daniel Landau <address@hidden>
Commit: Daniel Landau <address@hidden>

    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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index b2efce0..9515e27 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -1456,7 +1456,7 @@ the correct number of ARGS must be provided."
          "Compilation produced %s syntax errors.")
 
 (js2-msg "msg.var.redecl"
-         "TypeError: redeclaration of var %s.")
+         "Redeclaration of var %s.")
 
 (js2-msg "msg.const.redecl"
          "TypeError: redeclaration of const %s.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]