* Desugar class properties to Object.defineProperty per spec * Define uninitialized static class properties with value=undefined * Make class-properties increased spec compliance opt-in (spec: true)
17 lines
520 B
JavaScript
17 lines
520 B
JavaScript
var Foo = function (_Bar) {
|
|
babelHelpers.inherits(Foo, _Bar);
|
|
|
|
function Foo(...args) {
|
|
var _temp, _this, _ret;
|
|
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
return _ret = (_temp = (_this = babelHelpers.possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).call(this, ...args)), _this), Object.defineProperty(_this, "bar", {
|
|
enumerable: true,
|
|
writable: true,
|
|
value: "foo"
|
|
}), _temp), babelHelpers.possibleConstructorReturn(_this, _ret);
|
|
}
|
|
|
|
return Foo;
|
|
}(Bar);
|