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

Fully deoptimize first level path when deoptimizing nested parameter paths #5153

Merged
merged 1 commit into from Sep 24, 2023

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
Resolves #5152

Description

There was an asymmetry in the deoptimization logic that falsely marked parameter properties as "deoptimized" even though only their nested properties were deoptimized.

@vercel
Copy link

vercel bot commented Sep 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview Sep 23, 2023 6:54am

@github-actions
Copy link

github-actions bot commented Sep 23, 2023

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#gh-5152-track-mutated-in-callback

Notice: Ensure you have installed Rust nightly. If you haven't installed it yet, please first see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust, then see https://rust-lang.github.io/rustup/concepts/channels.html to learn how to install Rust nightly.

or load it into the REPL:
https://rollup-6pygqegdq-rollup-js.vercel.app/repl/?pr=5153

@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

Merging #5153 (0101753) into master (a1a89e7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5153   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files         226      226           
  Lines        8444     8444           
  Branches     2319     2319           
=======================================
  Hits         8354     8354           
  Misses         32       32           
  Partials       58       58           
Files Changed Coverage Δ
src/ast/variables/ParameterVariable.ts 96.07% <100.00%> (ø)

@lukastaegert lukastaegert merged commit 353e462 into master Sep 24, 2023
12 checks passed
@lukastaegert lukastaegert deleted the gh-5152-track-mutated-in-callback branch September 24, 2023 05:29
@rollup-bot
Copy link
Collaborator

This PR has been released as part of rollup@3.29.3. You can test it via npm install rollup.

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.

Tree-shaking mistakenly removes IF statement as a dead code (regression since 3.19.0)
2 participants