[Webkit-unassigned] [Bug 14325] Using built-in type Constructor objects as keys fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 22 18:27:49 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14325
ggaren at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Comment #1 from ggaren at apple.com 2007-06-22 18:27 PDT -------
This is a coincidental side-effect of the fact that Firefox and IE convert
these objects to unique strings.
Generally, JavaScript does not support using an object as a key. It uses
strings as keys.
The following fails in the same way in Firefox, even though each key is a
distinct object:
typeMap[new Object] = "n";
typeMap[new Object] = "b";
typeMap[new Object] = "s";
typeMap[new Object] = "d";
typeMap[new Object] = "a";
typeMap[new Object] = "m";
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list