Skip to content

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

Merged
trevor-scheer merged 3 commits into
masterfrom
trevor/remove-object-fromentries
Jun 6, 2019
Merged

Remove Object.fromEntries usage (node 12 only)#2787
trevor-scheer merged 3 commits into
masterfrom
trevor/remove-object-fromentries

Conversation

@trevor-scheer

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

Copy link
Copy Markdown
Contributor

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

@jbaxleyiii jbaxleyiii left a comment

Copy link
Copy Markdown
Contributor

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