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

Ensure arguments are deoptimized when arguments variable is used #4965

Merged
merged 1 commit into from Apr 29, 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:

Description

The new selective call argument deoptimization logic did not take usages of "arguments" into account, which is fixed here.

@vercel
Copy link

vercel bot commented Apr 28, 2023

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

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2023 4:42am

@github-actions
Copy link

github-actions bot commented Apr 28, 2023

Thank you for your contribution! ❤️

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

npm install rollup/rollup#ensure-deoptimized-arguments

or load it into the REPL:
https://rollup-vzbnqewnz-rollup-js.vercel.app/repl/?pr=4965

@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #4965 (567a9c2) into master (6cc3fef) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4965   +/-   ##
=======================================
  Coverage   98.98%   98.99%           
=======================================
  Files         222      222           
  Lines        8112     8123   +11     
  Branches     2236     2237    +1     
=======================================
+ Hits         8030     8041   +11     
  Misses         28       28           
  Partials       54       54           
Impacted Files Coverage Δ
src/ast/nodes/shared/FunctionBase.ts 98.30% <100.00%> (+0.05%) ⬆️
src/ast/nodes/shared/FunctionNode.ts 97.14% <100.00%> (+0.08%) ⬆️
src/ast/variables/ArgumentsVariable.ts 100.00% <100.00%> (ø)

@lukastaegert lukastaegert merged commit 8a5517d into master Apr 29, 2023
12 checks passed
@lukastaegert lukastaegert deleted the ensure-deoptimized-arguments branch April 29, 2023 04:53
@rollup-bot
Copy link
Collaborator

This PR has been released as part of rollup@3.21.1. 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.

Code transformed incorrectly
2 participants