- Apr 5, 2010There is a new option, Tolerate ES5 syntax. If you check this option, JSLint will accept the new get/set syntax in object literals.
It will require that the get and set functions be declared together, that the get function have no parameters, and that the set function will have a single parameter called 'value'.
Please let me know if you find any problems. Eventually it may recognize other corrections with this option, such as dangling commas in array and object literals.
- Next post in topic >>