Using a decorator breaks the enumerability of non-decorated fields #8760
Labels
Has PR
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Spec: Decorators
v7 Regression
Potential Commit/PR that introduced the regression
Probably #7976, but didn't verify
Describe the regression
If
@babel/plugin-proposal-class-properties
is used to initialize a class field, the field becomes non-enumerable if there are decorators used in the same class. (Despite being applied to different fields)legacy: false
is used for@babel/plugin-proposal-decorators
(it succeeds in legacy mode)loose
and non-loose mode forproposal-class-properties
Input Code
(Could not verify in Repl as it still uses babel 6)
Babel Configuration (.babelrc, package.json, cli command)
Expected behavior/code
A clear and concise description of what you expected to happen (or code).
Environment
babel-jest
]The text was updated successfully, but these errors were encountered: