If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Vector.unshift not working properly

VERIFIED FIXED

Status

Tamarin
Virtual Machine
VERIFIED FIXED
9 years ago
8 years ago

People

(Reporter: Erik Tierney, Unassigned)

Tracking

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

Details

Attachments

(1 obsolete attachment)

(Reporter)

Description

9 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

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

Comment 1

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

Comment 2

8 years ago
Created attachment 404866 [details] [diff] [review]
testcase

Comment 3

8 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

8 years ago
Status: RESOLVED → VERIFIED

Updated

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