Super property eval order (#11480)
This commit is contained in:
@@ -22,11 +22,11 @@ let Outer = /*#__PURE__*/function (_Hello) {
|
||||
function Outer() {
|
||||
let _babelHelpers$get$cal;
|
||||
|
||||
var _this;
|
||||
var _thisSuper, _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, Outer);
|
||||
_this = _super.call(this);
|
||||
_babelHelpers$get$cal = babelHelpers.get(babelHelpers.getPrototypeOf(Outer.prototype), "toString", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
|
||||
_babelHelpers$get$cal = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Outer.prototype)), "toString", _thisSuper).call(_thisSuper);
|
||||
|
||||
let Inner = function Inner() {
|
||||
babelHelpers.classCallCheck(this, Inner);
|
||||
|
||||
@@ -22,14 +22,14 @@ var B = /*#__PURE__*/function (_A) {
|
||||
var _super = babelHelpers.createSuper(B);
|
||||
|
||||
function B(...args) {
|
||||
var _this;
|
||||
var _thisSuper, _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, B);
|
||||
_this = _super.call(this, ...args);
|
||||
|
||||
_foo.set(babelHelpers.assertThisInitialized(_this), {
|
||||
writable: true,
|
||||
value: babelHelpers.get(babelHelpers.getPrototypeOf(B.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this))
|
||||
value: babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper)
|
||||
});
|
||||
|
||||
return _this;
|
||||
|
||||
@@ -22,11 +22,11 @@ var B = /*#__PURE__*/function (_A) {
|
||||
var _super = babelHelpers.createSuper(B);
|
||||
|
||||
function B(...args) {
|
||||
var _this;
|
||||
var _thisSuper, _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, B);
|
||||
_this = _super.call(this, ...args);
|
||||
_this.foo = babelHelpers.get(babelHelpers.getPrototypeOf(B.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
|
||||
_this.foo = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper);
|
||||
return _this;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ var B = /*#__PURE__*/function (_A) {
|
||||
var _super = babelHelpers.createSuper(B);
|
||||
|
||||
function B(...args) {
|
||||
var _this;
|
||||
var _thisSuper, _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, B);
|
||||
_this = _super.call(this, ...args);
|
||||
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "foo", babelHelpers.get(babelHelpers.getPrototypeOf(B.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this)));
|
||||
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "foo", babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper));
|
||||
return _this;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ var Test = function Test() {
|
||||
var _super = _createSuper(Other);
|
||||
|
||||
function Other() {
|
||||
var _this;
|
||||
var _thisSuper, _this;
|
||||
|
||||
_classCallCheck(this, Other);
|
||||
|
||||
@@ -44,7 +44,7 @@ var Test = function Test() {
|
||||
_this = _super.call.apply(_super, [this].concat(args));
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "a", function () {
|
||||
return _get(_getPrototypeOf(Other.prototype), "test", _assertThisInitialized(_this));
|
||||
return _get((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(Other.prototype)), "test", _thisSuper);
|
||||
});
|
||||
|
||||
return _this;
|
||||
|
||||
Reference in New Issue
Block a user