Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: All elements in an Array should be enumerable #5162

Closed
Bale001 opened this issue Aug 28, 2021 · 2 comments
Closed

avm2: All elements in an Array should be enumerable #5162

Bale001 opened this issue Aug 28, 2021 · 2 comments
Labels
avm2 AVM2 (ActionScript 3.0) issues

Comments

@Bale001
Copy link
Member

Bale001 commented Aug 28, 2021

The current code does not work in Ruffle:

var a = [1, 2, 3, 4, 5];
for each(var i in a) {
    trace(i)
}

Because the elements in the Array are not enumerable. Array objects should have a custom get_enumerant_name and property_is_enumerable implementation to support this.

@adrian17 adrian17 added the avm2 AVM2 (ActionScript 3.0) issues label Sep 3, 2021
@danielhjacobs
Copy link
Contributor

This was fixed #5447, correct?

@Bale001
Copy link
Member Author

Bale001 commented Oct 11, 2021

This was fixed #5447, correct?

Yup

@Bale001 Bale001 closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues
Projects
None yet
Development

No branches or pull requests

3 participants