Skip to content

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

Merged
lukastaegert merged 1 commit into
masterfrom
gh-5152-track-mutated-in-callback
Sep 24, 2023
Merged

lukastaegert merged 1 commit into
masterfrom
gh-5152-track-mutated-in-callback

Conversation

@lukastaegert

Copy link
Copy Markdown
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

vercel Bot commented Sep 23, 2023

Copy link
Copy Markdown

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

github-actions Bot commented Sep 23, 2023 •

Copy link
Copy Markdown

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

codecov Bot commented Sep 23, 2023

Copy link
Copy Markdown

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
@lukastaegert
lukastaegert deleted the gh-5152-track-mutated-in-callback branch September 24, 2023 05:29
@rollup-bot

Copy link
Copy Markdown
Collaborator

This PR has been released as part of [email protected]. You can test it via npm install rollup.

This branch was successfully deployed

1 active deployment
Preview — 0101753b Deployed Sep 23, 2023 by vercel[bot]
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