Re:Best Practices Exist For A Reason
by bentlegen on Wednesday May 02, 2012 @05:33PM
(#3921325)
Trailing commas is defined in ECMAScript 5. The issue is that IE8 and earlier choke on them.
[ Parent
| on HN ]
Isn't ES5 only supported since IE9?
Not to mention, IE8 was released half a year before ES5 (according to a quick check on Wikipedia). So yes, pre-ES5 I'd say it's a normal thing to do not to allow trailing commas.