jshint/jshint — Issue #336: Parse error on empty for in blocks
Author: goatslacker
Created: 2011-11-05 00:27:44+00:00
State: open

The code:

for ( key in obj ) {}
har har = foo.class @ super const static!!!!! ^_^

It'll complain about a bad variable, an empty block and then it'll die with "Cannot read property 'length' of undefined" completely ignoring the gibberish on line 2.