Permalink
Browse files

+a[0]

  • Loading branch information...
1 parent c33bb0a commit ebfc437ef29e32bfd44b98d632dc282f8f102c4e @douglascrockford committed Sep 18, 2012
Showing with 13 additions and 8 deletions.
  1. +13 −8 jslint.js
View
@@ -1,5 +1,5 @@
// jslint.js
-// 2012-09-17
+// 2012-09-18
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -2603,12 +2603,17 @@ klass: do {
break;
case '+':
case '-':
- switch (this.first.id) {
- case '[':
- case '{':
- case '!':
- warn('unexpected_a', this.first);
- break;
+ if (this.first.arity === 'prefix') {
+ switch (this.first.id) {
+ case '[':
+ case '{':
+ case '!':
+ case '~':
+ case '+':
+ case '-':
+ warn('unexpected_a', this.first);
+ break;
+ }
}
break;
}
@@ -6448,7 +6453,7 @@ klass: do {
itself.jslint = itself;
- itself.edition = '2012-09-17';
+ itself.edition = '2012-09-18';
return itself;
}());

0 comments on commit ebfc437

Please sign in to comment.