Closed
Bug 404119
Opened 17 years ago
Closed 17 years ago
Incorrect result for 0 in [,'foo']
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 260106
People
(Reporter: norrisboyd, Unassigned)
Details
Spidermonkey evaluates 0 in [,'foo'] to true. Our reading of ECMA-262 Section 11.1.4 Array Initializers is that [,'foo'] just does a [[Put]] to property 1 and nothing on property 0. So we believe that 0 in [,'foo'] should be false.
Both IE and Rhino evaluate 0 in [,'foo'] to false.
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•