Closed
Bug 507507
Opened 16 years ago
Closed 16 years ago
Accessing an empty Vector using array syntax throws RangeError when an Array would not
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: cpeyer, Unassigned)
Details
Steps to reproduce: This bug occurs in Flash Player 10_0_0_d421, related bug from Flash Player Bugbase is 218711
1. Create a .fla with the following code in it:
var test:Vector.<int> = new Vector.<int>;
if(test[0]) {
trace("Not Empty");}
2. Compile and run
3.
Actual Results: Throws "RangeError: Error #1125: The index 0 is out of range 0."
Expected Results: if(test[0]) should return false as an empty array would
Transferred from http://bugs.adobe.com/jira/browse/FP-60
Flags: in-testsuite?
Flags: flashplayer-qrb?
Comment 1•16 years ago
|
||
I doubt this is a bug. IIRC vectors are range checked because range checking is good. Need to check the spec.
This is not a bug. Vectors are range checked by design. Closing.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Updated•16 years ago
|
Flags: flashplayer-qrb? → flashplayer-qrb+
Reporter | ||
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•