Nicolò Ribaudo 9f4e2f81d8
[class-properties] Remove unnecessary return and temp variable (#8123)
* Remove unnecessary temp variable

* Update tests
2018-06-08 07:02:36 +02:00

33 lines
617 B
JavaScript

var Foo = function Foo() {
"use strict";
babelHelpers.classCallCheck(this, Foo);
_prop.set(this, "foo");
};
var _prop = new WeakMap();
var Bar =
/*#__PURE__*/
function (_Foo) {
"use strict";
babelHelpers.inherits(Bar, _Foo);
function Bar(...args) {
var _this;
babelHelpers.classCallCheck(this, Bar);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Bar).call(this, ...args));
_prop2.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), "bar");
return _this;
}
return Bar;
}(Foo);
var _prop2 = new WeakMap();