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

Map constructor parameter? #52

Open
benjaminy opened this issue Mar 1, 2020 · 0 comments
Open

Map constructor parameter? #52

benjaminy opened this issue Mar 1, 2020 · 0 comments

Comments

@benjaminy
Copy link

It seems that transit-js Map constructor handling of its parameter is non-standard. The spec says it is an iterable of 2-element (key, value) arrays. The transit-js Map constructor expects an iterable of alternating key-value pairs.
I imagine it would be disruptive to change the behavior of the Map constructor at this point, but maybe it's at least worth highlighting the non-conformance with the ECMA spec in the API docs?

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

1 participant