diff --git a/fulljslint.js b/fulljslint.js index 4795936b1..83c88f64b 100755 --- a/fulljslint.js +++ b/fulljslint.js @@ -1,5 +1,5 @@ // jslint.js -// 2011-01-27 +// 2011-01-28 /* Copyright (c) 2002 Douglas Crockford (www.JSLint.com) @@ -3794,10 +3794,13 @@ loop: for (;;) { if (!id) { if (nexttoken.id === '(string)') { id = nexttoken.value; - if (option.adsafe && - (id.charAt(0) === '_' || - id.charAt(id.length - 1) === '_')) { - warning(bundle.dangling_a, token); + if (option.safe) { + if (banned[id]) { + warning(bundle.adsafe_a); + } else if (id.charAt(0) === '_' || + id.charAt(id.length - 1) === '_') { + warning(bundle.dangling_a); + } } advance(); } else if (nexttoken.id === '(number)') { @@ -6215,7 +6218,7 @@ loop: for (;;) { }; itself.jslint = itself; - itself.edition = '2011-01-27'; + itself.edition = '2011-01-28'; return itself; diff --git a/lint.html b/lint.html index 6bc972808..5cb080b96 100755 --- a/lint.html +++ b/lint.html @@ -265,12 +265,7 @@

=

... }

It is difficult to write correct programs while using idioms that are - hard to distinguish from obvious errors. If you really intend an assignment, - wrap it in another set of parens:

-
if ((a = b)) {
-    ...
-}
- + hard to distinguish from obvious errors.

== and !=

The == and != operators do type coercion before comparing. This is bad because it causes ' \t\r\n' == 0 to