Skip to content

Fix 'accessor' crash for invalid modifier locations #58963

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 1 commit into from
Jun 24, 2024
Merged

Conversation

rbuckton
Copy link
Contributor

@rbuckton rbuckton commented Jun 21, 2024

This fixes a crash when an accessor modifier appears on a declaration that doesn't support it when downleveling class fields. The assertion that was removed was intended to catch a failure to use modifierVisitor when transforming a field declaration and did not take into account the presence of accessor on declarations that don't actually support it.

Partially Fixes #58924

@rbuckton rbuckton requested review from sandersn and iisaduan June 21, 2024 20:08
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Jun 21, 2024
@rbuckton rbuckton merged commit c76c418 into main Jun 24, 2024
28 checks passed
@rbuckton rbuckton deleted the fix-58924 branch June 24, 2024 20:18
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes on transform and parse (from assertion/debug failures)
4 participants