-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(es/codegen): Emit question token for class methods #9342
fix(es/codegen): Emit question token for class methods #9342
Conversation
🦋 Changeset detectedLatest commit: ff6aa78 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -1599,6 +1599,10 @@ where | |||
} | |||
} | |||
|
|||
if n.is_optional { | |||
punct!("?"); | |||
} |
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.
I think this regressed because previously it happened to emit from the binding ident being optional.
CodSpeed Performance ReportMerging #9342 will improve performances by 3.39%Comparing Summary
Benchmarks breakdown
|
I'm in the process of upgrading swc and stumbled on this one.
Description: Regression in emitting class methods that are optional.
Related issue (if exists): None