-
-
Notifications
You must be signed in to change notification settings - Fork 722
feat(minifier): rewrite arguments copy loops to spread syntax
#13114
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
feat(minifier): rewrite arguments copy loops to spread syntax
#13114
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #13114 will not alter performanceComparing Summary
Footnotes |
f845070 to
896c3ba
Compare
8863890 to
9f0367e
Compare
9f0367e to
ff1d148
Compare
Merge activity
|
Reverse-transpile rest argument code generated by TypeScript and babel. Example input: ```js for (var e = arguments.length, r = Array(e), a = 0; a < e; a++) r[a] = arguments[a]; ``` output: ```js var r = [...arguments]; ``` It's a quite specific transform though.
ff1d148 to
3d0d31a
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
…porary variables are referenced outside the for loop (#14613) fixes rolldown/rolldown#6458 refs #13114

Reverse-transpile rest argument code generated by TypeScript and babel.
Example input:
output:
It's a quite specific transform though.