Vector.unshift not working properly

VERIFIED FIXED

Status

VERIFIED FIXED
10 years ago
10 years ago

People

(Reporter: tierney, Unassigned)

Tracking

unspecified
x86
All
Bug Flags:
in-testsuite +
flashplayer-triage +

Details

Attachments

(1 obsolete attachment)

(Reporter)

Description

10 years ago
Vector.unshift() method removes items at end of vectors of strings and objects when inserting items at the beginning, instead of increasing the length of the vector. Works correctly for vectors of uints.

test case:
var strVector = new Vector.<String>;
strVector.push("Carol", "Justine");
trace(strVector); //output: Carol, Justine
trace(strVector.unshift("Betty"));
trace(strVector)

actual:
Carol,Justine
2
Betty,Carol

expected:
Carol,Justine
3
Betty,Carol,Justine
(Reporter)

Updated

10 years ago
OS: Windows XP → All
(Reporter)

Comment 1

10 years ago
pushed fix:  http://hg.mozilla.org/tamarin-redux/rev/0163e2ba9d60
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED

Comment 3

10 years ago
Comment on attachment 404866 [details] [diff] [review]
testcase

Confirmed that testcase failed when using shell in astro and is passing in tamarin-redux tip.

Pushed testcase as 2702:b65d52fb76cc
Attachment #404866 - Attachment is obsolete: true

Updated

10 years ago
Status: RESOLVED → VERIFIED

Updated

10 years ago
Flags: in-testsuite+
Flags: flashplayer-triage+
You need to log in before you can comment on or make changes to this bug.