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

19 lines
465 B
JavaScript

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