In another language the compiler/parser may have thrown a warning, but the issue here is actually that this is valid Javascript. Poorly composed Javascript, but completely valid.
Of course, jslint will complain about it (and a dozen other style things), so the more people utilize tools like that, the better.
More than anything, it's yet another reason to employ unit testing. Valid code that fails is very hard to debug without unit testing.