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

Remove Object.fromEntries usage (node 12 only) #2787

Merged
merged 3 commits into from
Jun 6, 2019

Conversation

trevor-scheer
Copy link
Member

@trevor-scheer trevor-scheer commented Jun 6, 2019

This PR resolves an invalid use of Object.fromEntries. This function is currently only supported by Node 12. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries

I created a small, hand validation of this change for my own confirmation here:
https://runkit.com/trevor-scheer/5cf933b15f7a26001ba9a9c6

Closes #2775

Copy link
Contributor

@jbaxleyiii jbaxleyiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trevor-scheer can you add a comment about why we don't use fromEntries here for future collaborators?

@trevor-scheer trevor-scheer merged commit 5b46e44 into master Jun 6, 2019
@trevor-scheer trevor-scheer deleted the trevor/remove-object-fromentries branch June 6, 2019 15:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object.fromEntries is not defined in Node.js versions < 12
2 participants