Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix issue causing `/*jslint white:false */` to have no effect #21

Closed
wants to merge 1 commit into from

2 participants

@joshvarner

It appears that after commit cac64ef, option.white cannot be set to false using the /*jslint white:false */ comment. The commit in this pull request fixes the issue.

@douglascrockford

Thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 2 deletions.
  1. +10 −2 fulljslint.js
View
12 fulljslint.js
@@ -2458,9 +2458,17 @@ loop: for (;;) {
}
obj.maxlen = b;
} else if (nexttoken.id === 'true') {
- obj[n.value] = true;
+ if (n.value === 'white' && o === '/*jslint') {
+ w = obj.white = true;
+ } else {
+ obj[n.value] = true;
+ }
} else if (nexttoken.id === 'false') {
- obj[n.value] = false;
+ if (n.value === 'white' && o === '/*jslint') {
+ w = obj.white = false;
+ } else {
+ obj[n.value] = false;
+ }
} else {
error(bundle.unexpected_a);
}
Something went wrong with that request. Please try again.