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]: Babel throws on computed property access using[x] #15221

Closed
1 task done
JLHwung opened this issue Nov 24, 2022 · 2 comments 路 Fixed by #15225
Closed
1 task done

[Bug]: Babel throws on computed property access using[x] #15221

JLHwung opened this issue Nov 24, 2022 · 2 comments 路 Fixed by #15225
Labels
i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser

Comments

@JLHwung
Copy link
Contributor

JLHwung commented Nov 24, 2022

馃捇

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

var using = [];
using[0];

REPL

Configuration file name

No response

Configuration

REPL

Current and expected behavior

Current: Babel throws "Support for the experimental syntax 'explicitResourceManagement' isn't currently enabled (2:1)"

Expected: Babel parses it successfully.

Environment

REPL

Possible solution

No response

Additional context

This is a regression introduced in #14968.

The bug is already covered in the test case

but the behaviour is not correct since it is already valid JS.

@babel-bot
Copy link
Collaborator

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

@JLHwung
Copy link
Contributor Author

JLHwung commented Nov 25, 2022

Note that

will be valid under the Extractors proposal. I tend to remove the recoverable errors for the using-binding-pattern scenario.

@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 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants