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

Using a symbol as array index crashes with a class cast exception #531

Closed
rbri opened this issue Apr 2, 2019 · 1 comment
Closed

Using a symbol as array index crashes with a class cast exception #531

rbri opened this issue Apr 2, 2019 · 1 comment

Comments

@rbri
Copy link
Collaborator

rbri commented Apr 2, 2019

Hi Greg,
found this simple example that fails.

var arr = ['Apple', 'Banana'];
arr[Symbol.iterator] = function () { return i; };

Not sure how to fix this but i hope you have an idea because you have done the symbol support so far.

@gbrail
Copy link
Collaborator

gbrail commented Apr 10, 2019

The fix looks good -- merged!

@gbrail gbrail closed this as completed Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants