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

Make sure, properties of constructor parameters are reassigned #2214

Merged
merged 3 commits into from May 24, 2018

Conversation

lukastaegert
Copy link
Member

Resolves #2213

Previously, mutating a parameter inside a constructor (in contrast to normal call expressions) would not be respected by the tree-shaking logic. This is fixed here.

@guybedford
Copy link
Contributor

Nice. Made me think of #2215 to add to the treeshaking optimization considerations.

@lukastaegert
Copy link
Member Author

Thanks for the quick review! I know I still owe you some reviews myself...

@lukastaegert lukastaegert merged commit 62e4a59 into master May 24, 2018
@lukastaegert lukastaegert added this to the 0.59.3 milestone May 24, 2018
@lukastaegert lukastaegert deleted the reassign-new-expression-parameters branch May 24, 2018 15:29
calebeby pushed a commit to Pigmice2733/scouting-frontend that referenced this pull request May 30, 2018
This Pull Request updates dependency [rollup](https://github.com/rollup/rollup) from `v0.59.0` to `v0.59.4`



<details>
<summary>Release Notes</summary>

### [`v0.59.4`](https://github.com/rollup/rollup/blob/master/CHANGELOG.md#&#8203;0594)
[Compare Source](rollup/rollup@v0.59.3...v0.59.4)
*2018-05-28*
* Fix performance regression when many return statements are used ([#&#8203;2218](`rollup/rollup#2218))

---

### [`v0.59.3`](https://github.com/rollup/rollup/blob/master/CHANGELOG.md#&#8203;0593)
[Compare Source](rollup/rollup@v0.59.2...v0.59.3)
*2018-05-24*
* Fix reassignment tracking for constructor parameters ([#&#8203;2214](`rollup/rollup#2214))

---

### [`v0.59.2`](https://github.com/rollup/rollup/blob/master/CHANGELOG.md#&#8203;0592)
[Compare Source](rollup/rollup@v0.59.1...v0.59.2)
*2018-05-21*
* Fix reassignment tracking in for-in loops ([#&#8203;2205](`rollup/rollup#2205))

---

### [`v0.59.1`](https://github.com/rollup/rollup/blob/master/CHANGELOG.md#&#8203;0591)
[Compare Source](rollup/rollup@v0.59.0...v0.59.1)
*2018-05-16*
* Fix infinite recursion when determining literal values of circular structures ([#&#8203;2193](`rollup/rollup#2193))
* Fix invalid code when simplifying expressions without spaces ([#&#8203;2194](`rollup/rollup#2194))

---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
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.

Incorrect code removal due to faulty code analysis?
2 participants