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

`export default async\nfunction` should not parse as an exported function #8696

Closed
mroch opened this Issue Sep 12, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@mroch
Contributor

mroch commented Sep 12, 2018

v7 Regression

Describe the regression

export default async
function bar() {}

AsyncFunctionDeclaration is async [no LineTerminator] function. in babylon 6, this parsed as export default async (exports an identifier named async) plus function bar() {} (a function declaration). in babylon 7, it parses as an exported AsyncFunctionDeclaration despite the newline.

Input Code
https://astexplorer.net/#/gist/6081181a21df379b40bdcb137e0e6843/dad6ae3de7ca6e5f723c3ff3a7caf2a360b31590

Environment

  • Babel version(s): v7.0.0
  • How you are using Babel: astexplorer
@babel-bot

This comment has been minimized.

Show comment
Hide comment
@babel-bot

babel-bot Sep 12, 2018

Collaborator

Hey @mroch! 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.

Collaborator

babel-bot commented Sep 12, 2018

Hey @mroch! 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment