[Project_owners] JS behavior in FF 1.5

Nagarjuna Venna vnagarjuna at gmail.com
Thu Dec 8 18:23:43 EST 2005

If I write the following code in the location bar of FF 1.5, I'm
getting what I think is a strange result:

javascript:var a = new Array(); alert(a['map']);

The return value is the function object for map(). In 1.0.7, it used
to return undefined.

I'm stumped by the following:

1. I'm assuming the value is coming from the global object - how is
'a' related to the global object other than being a property of the
global object?
2. How should I use associative arrays if unexpected values like this
are returned?


More information about the Project_owners mailing list