Permalink
Browse files

bad assignment

  • Loading branch information...
1 parent 3574148 commit a7c21a191cb662ffea0ee92a3390827dc6a96e40 @douglascrockford committed Nov 3, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 jslint.js
View
10 jslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2011-10-23
+// 2011-11-03
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -3009,10 +3009,12 @@ klass: do {
if (!left.first || left.first.string === 'arguments') {
warn('bad_assignment', that);
}
- } else if (left.identifier && !left.reserved) {
- if (funct[left.string] === 'exception') {
+ } else if (left.identifier) {
+ if (!left.reserved && funct[left.string] === 'exception') {
warn('assign_exception', left);
}
+ } else {
+ warn('bad_assignment', that);
}
that.second = expression(19);
if (that.id === '=' && are_similar(that.first, that.second)) {
@@ -6913,7 +6915,7 @@ klass: do {
};
itself.jslint = itself;
- itself.edition = '2011-10-23';
+ itself.edition = '2011-11-02';
return itself;

0 comments on commit a7c21a1

Please sign in to comment.