Skip to content

Commit

Permalink
Allow && in for in filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Feb 24, 2011
1 parent fa7dc5c commit 0c9340c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fulljslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -4535,8 +4535,11 @@ loop: for (;;) {
blok = block(true);
if (!option.forin) {
if (blok.length === 1 && typeof blok[0] === 'object' &&
blok[0].value === 'if') {
blok[0].value === 'if' && !blok[0]['else']) {
filter = blok[0].first;
while (filter.id === '&&') {
filter = filter.first;
}
switch (filter.id) {
case '===':
case '!==':
Expand Down

0 comments on commit 0c9340c

Please sign in to comment.