Justin Ridgewell 890a45216f
Update super property get/set/call in loose mode (#7774)
* Update super property get/set/call in loose mode

Follows the plan laid out in https://github.com/babel/babel/pull/7553#issuecomment-381434519.

With #7691, this closes #7553, closes #4312.

* Post #7772

* Memoized property
2018-04-22 13:49:19 -04:00

29 lines
772 B
JavaScript

var Test =
/*#__PURE__*/
function (_Foo) {
"use strict";
function Test() {
var _Foo$prototype$test;
var _this;
woops.super.test();
_this = _Foo.call(this) || this;
_Foo.prototype.test.call(babelHelpers.assertThisInitialized(_this));
_this = _Foo.apply(this, arguments) || this;
_this = _Foo.call.apply(_Foo, [this, "test"].concat(Array.prototype.slice.call(arguments))) || this;
_Foo.prototype.test.apply(babelHelpers.assertThisInitialized(_this), arguments);
(_Foo$prototype$test = _Foo.prototype.test).call.apply(_Foo$prototype$test, [babelHelpers.assertThisInitialized(_this), "test"].concat(Array.prototype.slice.call(arguments)));
return _this;
}
babelHelpers.inheritsLoose(Test, _Foo);
return Test;
}(Foo);