* Support computed class property names (#4499) ** Depends on babel/babylon#121 ** * `babel-types`: Add `computed` field to `ClassProperty` * `babel-plugin-transform-class-properties`: handle computed property names correctly * `babel-generator`: add tests for class properties (computed/literal, static/instance) * doc: Update babel-types with ClassProperty.computed * chore(package): update babylon to v6.11.0 * babel-types: move ClassProperty.computed to be last builder arg
5 lines
93 B
JavaScript
5 lines
93 B
JavaScript
var Foo = function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
this[bar] = "foo";
|
|
};
|