tweak modes

This commit is contained in:
nightwing 2013-12-29 20:03:08 +04:00
commit 37b3dc1efd
4 changed files with 8 additions and 5 deletions

View file

@ -3228,7 +3228,8 @@ var JSHINT = (function () {
if (this.id === "++" || this.id === "--") {
if (state.option.plusplus) {
warning("W016", this, this.id);
} else if ((!this.right.identifier || isReserved(this.right)) &&
} else if (this.right &&
(!this.right.identifier || isReserved(this.right)) &&
this.right.id !== "." && this.right.id !== "[") {
warning("W017", this);
}