Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

return assign

  • Loading branch information...
commit 32f21dfcf0536473c525086ee984c30e61e069f7 1 parent 22c8395
@douglascrockford authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 jslint.js
View
9 jslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2012-10-01
+// 2012-10-03
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -4549,7 +4549,10 @@ klass: do {
if (next_token.id === '/' || next_token.id === '(regexp)') {
warn('wrap_regexp');
}
- this.first = expression(20);
+ this.first = expression(0);
+ if (this.first.assign) {
+ warn('unexpected_a', this.first);
+ }
}
if (peek(0).id === '}' && peek(1).id === 'else') {
warn('unexpected_else', this);
@@ -6448,7 +6451,7 @@ klass: do {
itself.jslint = itself;
- itself.edition = '2012-10-01';
+ itself.edition = '2012-10-03';
return itself;
}());
Please sign in to comment.
Something went wrong with that request. Please try again.