apache / apache/royale-asjs

ICollectionView doesn't support indexed array syntax ([]) in JS

Open
#977 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

Both SWF and JS allow indexed array syntax for XMLListCollection. For example, mycol[0].

SWF supports indexed array syntax for ICollectionView, but JS does not; it shows undefined.

See attached test case.

[TestCollectionBrackets.mxml.txt](https://github.com/apache/royale-asjs/files/5630210/TestCollectionBrackets.mxml.txt)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached TestCollectionBrackets.mxml.txt test case and trace the JavaScript implementation of ICollectionView involved in the indexed access. Compare its behavior with the SWF case and verify that mycol[0] returns the expected collection item rather than undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.