Closed
Bug 623246
Opened 14 years ago
Closed 13 years ago
"0" and "-0" is regarded same object property
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: yukoba, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.42 Safari/534.13 Build Identifier: 1.7R2 var table = {}; table["0"] = 1; After this, at Rhino 1.7R2 and 1.7R3pre, table["-0"] returns 1. As "0" and "-0" are both strings, table["-0"] should be undefined. However, table["+0"] correctly returns undefined. Reproducible: Always
Comment 1•13 years ago
|
||
Fixed in git master: https://github.com/mozilla/rhino/commit/3035416714058cb7943f6e4fe0019bf3ed064d05
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•