jshint/jshint — pull request #408 by WolfgangKluge (2011-12-30 17:07:46+00:00)
Title: Correctly identify duplicate object properties (2)

This is the pull request #401 plus some minor changes

* Remove "Don't make functions within a loop." on getters
* Don't force "value" as parameter name of setters
* Extend tests (coverage)

----

JSHint was incorrectly identifying duplicate properties because of numerous unsafe assumptions such as that setters always follow getters and others.

This patch removes these assumptions and makes sure that we understand that 'get x, set x is okay' but 'get x, x' is not.

Also, added tests for duplicate members and a regression test for the aforementioned bug.

This is a response to #382 and a faulty merge 63382c7.