Skip to content

Commit

Permalink
Unexpected '.'.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Jul 5, 2014
1 parent a2935fb commit c5d95af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jslint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// jslint.js
// 2014-04-21
// 2014-07-04

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

Expand Down Expand Up @@ -3008,6 +3008,8 @@ klass: do {
left.warn('write_is_wrong');
} else if (!option.stupid && syx.test(name)) {
token.warn('sync_a');
} else if (left && left.id === '{') {
that.warn('unexpected_a');
}
if (!option.evil && (name === 'eval' || name === 'execScript')) {
next_token.warn('evil');
Expand Down Expand Up @@ -4272,7 +4274,7 @@ klass: do {

itself.jslint = itself;

itself.edition = '2014-04-08';
itself.edition = '2014-07-04';

return itself;
}());

0 comments on commit c5d95af

Please sign in to comment.