]> code.delx.au - gnu-emacs-elpa/commitdiff
Trailing comma is legal ecma-262-5.1
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 17 Feb 2013 02:52:05 +0000 (06:52 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 17 Feb 2013 02:53:28 +0000 (06:53 +0400)
Fixes #85

js2-mode.el

index de465f1d20e66c4ec840a1ff70b8b08240adeb65..e56f3cd5e76d3fe85341e80c45de918ad05b1841 100644 (file)
@@ -337,8 +337,7 @@ even if this flag is non-nil."
 
 (defcustom js2-strict-trailing-comma-warning t
   "Non-nil to warn about trailing commas in array literals.
-Ecma-262 forbids them, but many browsers permit them.  IE is the
-big exception, and can produce bugs if you have trailing commas."
+Ecma-262-5.1 allows them, but older versions of IE raise an error."
   :type 'boolean
   :group 'js2-mode)
 
@@ -1748,7 +1747,7 @@ the correct number of ARGS must be provided."
          "Code has no side effects")
 
 (js2-msg "msg.extra.trailing.comma"
-         "Trailing comma is not legal in an ECMA-262 object initializer")
+         "Trailing comma is not supported in some browsers")
 
 (js2-msg "msg.array.trailing.comma"
          "Trailing comma yields different behavior across browsers")