Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Remove Object.assign calls in favor of the spread operator#987

Merged
nchevobbe merged 6 commits intomasterfrom
spread
Mar 8, 2018
Merged

Remove Object.assign calls in favor of the spread operator#987
nchevobbe merged 6 commits intomasterfrom
spread

Conversation

@nchevobbe
Copy link
Copy Markdown
Member

As found by @Loirooriol , this fix an issue with objects containing a __proto__ property (Object.assign calls setters and strips the proto property).

Took this as an opportunity to remove Object.assign calls where it could be done.

Fixes #986.

@nchevobbe nchevobbe requested a review from janodvarko March 8, 2018 08:21
Copy link
Copy Markdown
Contributor

@janodvarko janodvarko left a comment

Choose a reason for hiding this comment

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

Looks good for me.
R+ assuming tests are green
Thanks,
Honza

@nchevobbe
Copy link
Copy Markdown
Member Author

Mhh, circle does not like the spread operator

@nchevobbe
Copy link
Copy Markdown
Member Author

yay, circle's happy with correct Node version

@nchevobbe nchevobbe merged commit 42a7ff7 into master Mar 8, 2018
@nchevobbe nchevobbe deleted the spread branch March 8, 2018 13:56
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.

Replace Object.assign with spread properties

2 participants