Skip to content

fix(es/decorators): Fix capacity overflow with decorators #8818

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

Merged
merged 6 commits into from
Apr 9, 2024

Conversation

dsherret
Copy link
Contributor

@dsherret dsherret commented Apr 5, 2024

Description:

Was looking through the code again and noticed this.

Related issue (if exists): No

@dsherret dsherret requested a review from a team as a code owner April 5, 2024 17:36
Copy link

changeset-bot bot commented Apr 5, 2024

⚠️ No Changeset found

Latest commit: 80be3de

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

export function test() {
var _dec, _initClass, _dec1, _dec2, _initProto;
let _Foo;
_dec = decorate(), _dec1 = decorate(), _dec2 = decorate();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a test for this because I think in my last PR this expression was accidentally above the var decls, which is not a big deal, but not ideal.

@kdy1 kdy1 self-assigned this Apr 8, 2024
@kdy1 kdy1 added this to the Planned milestone Apr 8, 2024
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swc-bump:

  • swc_ecma_transforms_proposal
  • swc_core

@kdy1 kdy1 changed the title fix(es/transforms): Fix capacity overflow with decorators in module items fix(es/transforms): Fix capacity overflow with decorators Apr 8, 2024
@kdy1 kdy1 enabled auto-merge (squash) April 8, 2024 02:20
@kdy1 kdy1 disabled auto-merge April 8, 2024 02:20
@kdy1 kdy1 changed the title fix(es/transforms): Fix capacity overflow with decorators fix(es/decorators): Fix capacity overflow with decorators Apr 8, 2024
@kdy1 kdy1 enabled auto-merge (squash) April 8, 2024 02:20
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review comment generated by auto-rebase script

Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit 9ed93c1 into swc-project:main Apr 9, 2024
142 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.4.13 Apr 9, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants