* add transform-class-properties to stage 3, set spec mode to default * update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
23 lines
523 B
JavaScript
23 lines
523 B
JavaScript
"use strict";
|
|
|
|
var Child = function (_Parent) {
|
|
babelHelpers.inherits(Child, _Parent);
|
|
|
|
function Child() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Child);
|
|
_this = babelHelpers.possibleConstructorReturn(this, (Child.__proto__ || Object.getPrototypeOf(Child)).call(this));
|
|
Object.defineProperty(_this, "scopedFunctionWithThis", {
|
|
enumerable: true,
|
|
writable: true,
|
|
value: function value() {
|
|
_this.name = {};
|
|
}
|
|
});
|
|
return _this;
|
|
}
|
|
|
|
return Child;
|
|
}(Parent);
|