jshint/jshint — Issue #350: shadow doesn't work sometimes
Author: goatslacker
Created: 2011-11-20 02:37:38+00:00
State: open

Isn't this supposed to complain?

/*jshint shadow: true */
function foo() {
var bar = true;
function baz() {
var foo = true;
var bar = true;
}
}

Yet this complains

function foo() {
var foo = true;
}

And so does this:

function foo() {
var bar = 1;
var bar = 2;
}