-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Labels
Spec: Class FieldsoutdatedA 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
Choose one: is this a bug report or feature request?
Input Code
var foo = "bar";
let Foo = class Foo {
bar = foo;
constructor() {
var foo = "foo";
}
};Babel/Babylon Configuration (.babelrc, package.json, cli command)
{
"presets": ["@babel/stage-3"]
}Current Behavior
var _class, _temp, _initialiseProps;
var foo = "bar";
let Foo = (_temp = _class = class Foo {
constructor() {
_initialiseProps.call(this);
var foo = "foo";
}
}, _initialiseProps = function () {
Object.defineProperty(this, "bar", {
configurable: true,
enumerable: true,
writable: true,
value: foo
});
}, _temp);The _class variable shouldn't be added.
Your Environment
(Found in repl, not tested locally)
| software | version(s) |
|---|---|
| Babel | 7.0.0-beta.32 |
| Babylon | |
| node | |
| npm | |
| Operating System |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Spec: Class FieldsoutdatedA 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