[Bug]: Babel throws on computed property access using[x]
#15221
Labels
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
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
babel/packages/babel-parser/test/fixtures/experimental/explicit-resource-management/invalid-using-binding-pattern/input.js
Line 3 in e7405b9
but the behaviour is not correct since it is already valid JS.
The text was updated successfully, but these errors were encountered: