-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Call includeNode for self or children nodes in includeDestructuredIfNecessary #6090
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.
|
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#fix/6075 Notice: 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❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #6090 +/- ##
==========================================
- Coverage 98.79% 98.73% -0.06%
==========================================
Files 271 271
Lines 10622 10624 +2
Branches 2840 2841 +1
==========================================
- Hits 10494 10490 -4
- Misses 88 89 +1
- Partials 40 45 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good to me! One only slightly related comment in order to improve coverage and avoid untested code.
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:
resolves #6075
Description
By directly assigning the
included
value of a child node (e.g., element.included = true), the first include logic of that child inincludeNode
may be bypassed. Therefore, this PR useschildNode.includeNode
instead of settingelement.included = true
directly. In addition,includeNode
is also executed on the current node itself inincludeDestructuredIfNecessary
for the same reason. Finally, this PR fixes incorrect logic inObjectPattern
and simplifies the logic inArrayPattern
.