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

Don't shim Array.from if it already exists #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justinr1234
Copy link

No description provided.

@hthetiot
Copy link
Contributor

Fixed by 85f00f8

@hthetiot
Copy link
Contributor

@marchant i think you do use native Array.from when available on master already: 85f00f8

If you agree we can close this issue once new version on npm.

@justinr1234
Copy link
Author

@hthetiot a question:

Why shim Array.from at all if a native one exists? I looked at the code and it seems to be checking all sorts of things and still reimplementing Array.from (even though it calls the native one).

Why not just skip the shim altogether if the default exists?

@marchant
Copy link
Member

marchant commented Aug 12, 2021 via email

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.

3 participants