Closed
Bug 620651
Opened 14 years ago
Closed 6 years ago
Array "generic" methods do not preserve holes
Categories
(Tamarin Graveyard :: Library, defect)
Tamarin Graveyard
Library
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: lhansen, Unassigned)
References
Details
Methods like reverse and concat should preserve the holes (absent properties) in objects and arrays. For example, in any conformant implementation,
v = [1,,3,4]
print(1 in v) => false
print(2 in v) => true
w = v.reverse()
print(w) => [4,3,,1]
print(1 in w) => true
print(2 in w) => false
It is *not correct* to blindly copy properties from one array (or object) to the other, an "in" check is needed.
Insult is heaped upon injury by the correct documentation being present in the source code along with the incorrect implementation.
Blocks: AS3_Builtins
Flags: flashplayer-qrb+
Flags: flashplayer-needsversioning+
Flags: flashplayer-injection-
Flags: flashplayer-bug+
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•