-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Check if left side is included when checking if assigning to an assignment has side effects #6183
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Usually, the "included" check in variables is enough to detect if an assignment has side effects. When assigning to an assignment, however, it is possible to work around this check and we need to check manually.
7a8a2a4 to
2c11742
Compare
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#fix-define-property-issueNotice: Ensure you have installed the latest nightly Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust. or load it into the REPL: |
Performance report
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6183 +/- ##
=======================================
Coverage 98.74% 98.74%
=======================================
Files 271 271
Lines 10639 10640 +1
Branches 2847 2848 +1
=======================================
+ Hits 10505 10506 +1
Misses 91 91
Partials 43 43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR has been released as part of [email protected]. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
The issue is that when assigning to an assignment, we only check if the assignment itself has side effects but not if the assignment target is included.