warning: Creating default object from empty value in /home/kourge/ on line 34.

Firefox 3, Now With Array Inconsistency

Alex Russell has pointed out that Firefox 3 has some quirky issues with JavaScript arrays, namely, an array made from a literal has a different constructor than an array made from instantiating the global array object. Long story short, the below is true:

[].constructor != new Array().constructor


It seems like this is a Firebug-specific issue. If you try to evaluate the above in Error Console, you'll get false.

Syndicate content