[Webkit-unassigned] [Bug 14325] New: Using built-in type Constructor objects as keys fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 22 17:47:57 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14325
Summary: Using built-in type Constructor objects as keys fails
Product: WebKit
Version: 522+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: awiner at gmail.com
Run the following page. In FF 2.0 and IE 7.0, you see
"n b s d a m". In Safari, you just see "m"! Somehow,
all of these constructors are considered the same key
within an Object - this despite String == Object being
false.
Repros on both MacOS 419.3 and Windows 522.13.1.
<html>
<head>
<script>
var typeMap = new Object();
typeMap[Number] = "n";
typeMap[Boolean] = "b";
typeMap[String] = "s";
typeMap[Date] = "d";
typeMap[Array] = "a";
typeMap[Object] = "m";
var str = "";
for (var i in typeMap)
{
str += typeMap[i] + " ";
}
</script>
</head>
<body>
<div id ='someId' onclick="testHtml()">Hi</div>
</body>
</html>
--
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