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

do not mutate passed object to fromObject #4699

Merged

Conversation

stefanhayden
Copy link
Member

if this is not shallow cloned we end up mutating the pass object which we do not want to do.

I would like to add a test for this but I can't get the tests to run on my machine.

@asturur
Copy link
Member

asturur commented Feb 9, 2018

we need a small test to be sure we do not break it again.
Let me see if i can fast copy one.

@asturur asturur merged commit e13bc33 into fabricjs:master Feb 9, 2018
@asturur asturur mentioned this pull request Feb 10, 2018
thiagocunha pushed a commit to thiagocunha/fabric.js that referenced this pull request Nov 18, 2019
* do not mutate passed object to fromObject

* add a test

* this is what you get for editing in github.com
This pull request was closed.
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.

2 participants