Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: comments in async function are not handled correctly by generator #15126

Closed
1 task
zxbodya opened this issue Nov 4, 2022 · 2 comments
Closed
1 task
Labels
i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@zxbodya
Copy link
Contributor

zxbodya commented Nov 4, 2022

馃捇

  • Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

const fn = async () /* test */ => {
};

Configuration file name

No response

Configuration

No response

Current and expected behavior

using @babel/generator version 7.20.0 and newer results in error

last working version is 7.19.6

Environment

  • @babel/generator@7.20.0

Possible solution

No response

Additional context

also fails in babel repl

@babel-bot
Copy link
Collaborator

Hey @zxbodya! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@liuxingbaoyu
Copy link
Member

liuxingbaoyu commented Nov 4, 2022

Fixed in #15118 and will be released soon.
Thanks for your report!

Duplicate of #15111

@JLHwung JLHwung closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2022
@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 Feb 4, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

4 participants