Skip to content

[beta] Use the proper way of mutating a node in a transformer#703

Merged
kulshekhar merged 2 commits intokulshekhar:betafrom
huafu:refac-jest-hoisting
Sep 8, 2018
Merged

[beta] Use the proper way of mutating a node in a transformer#703
kulshekhar merged 2 commits intokulshekhar:betafrom
huafu:refac-jest-hoisting

Conversation

@huafu
Copy link
Copy Markdown
Collaborator

@huafu huafu commented Sep 8, 2018

This doesn't change the generate code, but as @cspotcode pointed me out, this creates a mutable node before actually mutating it.

Ti doesn't change anything in the generated code (of what I've tested and what is in the e2e tests), but cloning readonly stuff before mutating is always advised right 🤣?

There is also a fix for the transformer boilerplate code anyway.

@huafu huafu added this to the v23.10.0 milestone Sep 8, 2018
@kulshekhar kulshekhar merged commit e70d11c into kulshekhar:beta Sep 8, 2018
@huafu huafu deleted the refac-jest-hoisting branch September 15, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants