-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
Spec: Explicit Resource ManagementoutdatedA 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 issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
Programmatic API (babel.transform
, babel.parse
)
Input code
using foo = class { static [Symbol.dispose]() {} }
console.log(foo.name)
Configuration file name
No response
Configuration
{
"plugins": ["@babel/plugin-proposal-explicit-resource-management"]
}
Current and expected behavior
Current: it prints empty string
Expected: it prints foo
.
Environment
REPL
Possible solution
TS emits __setFunctionName
for the rhs. We can handle this issue in a similar approach.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Spec: Explicit Resource ManagementoutdatedA 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 issue