Skip to content

fix(converter): Remove abstract modifiers in class declaration to expression conversion#17321

Merged
nicolo-ribaudo merged 2 commits into
babel:mainfrom
magic-akari:fix/issue-17320
May 21, 2025
Merged

fix(converter): Remove abstract modifiers in class declaration to expression conversion#17321
nicolo-ribaudo merged 2 commits into
babel:mainfrom
magic-akari:fix/issue-17320

Conversation

@magic-akari

@magic-akari magic-akari commented May 19, 2025

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? Fixes #17320
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

@magic-akari magic-akari changed the title fix(toExpression): ensure abstract modifiers are not set on class exp… fix(toExpression): ensure abstract modifiers are not set on class expressions May 19, 2025
@babel-bot

babel-bot commented May 19, 2025

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/59367

@magic-akari

Copy link
Copy Markdown
Contributor Author

Not sure where to add the test files.

@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label May 19, 2025
@nicolo-ribaudo

nicolo-ribaudo commented May 19, 2025

Copy link
Copy Markdown
Member

I would add one in the decorators plugin, in the packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript folder but with the syntax rather than transform plugin, and a unit test in packages/babel-types/test/converters.js

@magic-akari magic-akari changed the title fix(toExpression): ensure abstract modifiers are not set on class expressions fix(converter): Remove abstract modifiers in class declaration to expression conversion May 21, 2025
@nicolo-ribaudo nicolo-ribaudo merged commit 253a64b into babel:main May 21, 2025
57 checks passed
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Aug 21, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 21, 2025
@magic-akari magic-akari deleted the fix/issue-17320 branch December 28, 2025 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Malformed generated TypeScript with class decorator, plugin-syntax-typescript, and a decorated abstract class

4 participants