-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser
Description
💻
- 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];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
Line 3 in e7405b9
| using [ bar ] = g(); |
but the behaviour is not correct since it is already valid JS.
Metadata
Metadata
Assignees
Labels
i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser