Firefox 3, Now With Array Inconsistency
Submitted by kourge on Tue, 02/19/2008 - 15:40
Related Terms :
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
Update
It seems like this is a Firebug-specific issue. If you try to evaluate the above in Error Console, you'll get false.
Recent comments
27 weeks 4 days ago
51 weeks 2 days ago
51 weeks 4 days ago
51 weeks 4 days ago
1 year 3 days ago
1 year 2 weeks ago
1 year 3 weeks ago
1 year 5 weeks ago
1 year 5 weeks ago
1 year 19 weeks ago