Skip to content

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

Open
justinr1234 wants to merge 1 commit into
montagejs:masterfrom
justinr1234:justinr1234-do-not-replace-array-from
Open

Don't shim Array.from if it already exists#212
justinr1234 wants to merge 1 commit into
montagejs:masterfrom
justinr1234:justinr1234-do-not-replace-array-from

Conversation

@justinr1234
Copy link
Copy Markdown

No description provided.

@hthetiot
Copy link
Copy Markdown
Contributor

Fixed by 85f00f8

@hthetiot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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