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

Fix __spreadArray for non-concat-spreadables #155

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

rbuckton
Copy link
Member

@rbuckton rbuckton commented Aug 9, 2021

The __spreadArray helper uses Array.concat, which doesn't work with DOM NodeList or HTMLCollection. This changes the __spreadArray helper to fall back to Array.prototype.slice.call(from) to ensure the elements of from are concatenated properly.

Fixes #153

@DanielRosenwasser DanielRosenwasser merged commit ffb6938 into main Aug 11, 2021
@rbuckton rbuckton deleted the fixSpreadArrayForNonConcatSpreadables branch August 11, 2021 22:56
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

Successfully merging this pull request may close these issues.

Spread operator breaks on HTML Collection or NodeList with [email protected]
3 participants