I have a Javascript project that must be compatible with older versions of IE, and I am using Eclipse Juno as my IDE.
Older versions of IE cannot handle a comma after the last element of an array, even though this is correct ECMAScript:
[a,b,c,]
Unfortunately, though this is correct syntax, it breaks my application only for IE, and only in production (where backwards compatibility is forced), and in a way that is very hard to debug (it does not fail anywhere near the line that is wrong).
Is there a way to set Eclipse to flag this as an error with the syntax validator? I did not see this as an option under Preferences -> JavaScript -> Validator -> Errors/Warnings