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?

Thanks,
nagarjuna
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to