Skip to content

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

@rbri

Description

@rbri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions