383Bug: unintialized variable with name 'constructor' gives strange error
- Mar 4, 2009It seems that using a variable named "constructor" that is not declared (which in itself is wrong off course) always produces a strange error. The rhino version of JSLint even crashes when you make this mistake. It actually caused me not to use JSLint on my source until I had the time to locate the source of the problem by eliminating each line in the source one-by-one.
Trying to lint this:
constructor = 1;
JSLint produces the error:
Problem at line 1 character 15: a.push is not a function
- Next post in topic >>