use a different helper if a class contains class methods to avoid non-enumerability and delegation to es6.properties.computed transformer - fixes #984, closes #986
This commit is contained in:
19
test/fixtures/transformation/es6-classes/computed-methods/expected.js
vendored
Normal file
19
test/fixtures/transformation/es6-classes/computed-methods/expected.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
}
|
||||
|
||||
babelHelpers.createComputedClass(Foo, [{
|
||||
key: "foo",
|
||||
value: function foo() {}
|
||||
}, {
|
||||
key: "foo",
|
||||
value: function foo() {}
|
||||
}, {
|
||||
key: bar,
|
||||
value: function () {}
|
||||
}]);
|
||||
return Foo;
|
||||
})();
|
||||
Reference in New Issue
Block a user