Skip to content

Commit

Permalink
bad assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Nov 3, 2011
1 parent 3574148 commit a7c21a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jslint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// jslint.js
// 2011-10-23
// 2011-11-03

// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)

Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -6913,7 +6915,7 @@ klass: do {
};
itself.jslint = itself;

itself.edition = '2011-10-23';
itself.edition = '2011-11-02';

return itself;

Expand Down

0 comments on commit a7c21a1

Please sign in to comment.