jshint/jshint — Issue #387: Parser is confused about delete statement
Author: goatslacker
Created: 2011-12-16 12:18:20+00:00
State: open

var foo = 1;
delete foo;

It tells me I shouldn't delete variables, that's fine.

However,

var foo = 1 // <--- it's missing the semicolon
delete foo;

Makes the parser all confused.

3 3 'Expected an operator and instead saw \'delete\'.'
3 9 'Missing semicolon.'
3 10 'Expected an assignment or function call and instead saw an expression.'