Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Feb 13, 2012
1 parent 3814224 commit cf8611c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions jslint.js
@@ -1,5 +1,5 @@
// jslint.js
// 2012-02-03
// 2012-02-13

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

Expand Down Expand Up @@ -3631,9 +3631,15 @@ klass: do {
no_space();
step_out(')', this);
if (value.id === 'function') {
if (next_token.id === '(') {
switch (next_token.id) {
case '(':
warn('move_invocation');
} else {
break;
case '.':
case '[':
warn('unexpected_a');
break;
default:
warn('bad_wrap', this);
}
}
Expand Down Expand Up @@ -4067,6 +4073,9 @@ klass: do {
if (funct['(loopage)']) {
warn('function_loop');
}
if (next_token.id === '.' || next_token.id === '[') {
warn('unexpected_a');
}
this.arity = 'function';
return this;
});
Expand Down Expand Up @@ -6364,7 +6373,7 @@ klass: do {
};
itself.jslint = itself;

itself.edition = '2012-02-03';
itself.edition = '2012-02-13';

return itself;
}());

0 comments on commit cf8611c

Please sign in to comment.