|
|
|
|
|
by nkozyra
4123 days ago
|
|
The real issue here is it's not an error. 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. |
|
Not to mention that that large a block of addition is bad code smell to me.