* Revert "Move subclass inheritance to end (#7772)" This reverts commit f8ab9466d331871a90f458af40b14e8d831e0c29. * Only use getPrototypeOf if setPrototypeOf is implemented * Update fixtures * Helpers updates * Update fixtures * Fall back to getPrototypeOf * Update fixtures
29 lines
671 B
JavaScript
29 lines
671 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 _temp, _this;
|
|
|
|
babelHelpers.classCallCheck(this, Bar);
|
|
return babelHelpers.possibleConstructorReturn(_this, (_temp = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Bar).call(this, ...args)), _prop2.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), "bar"), _temp));
|
|
}
|
|
|
|
return Bar;
|
|
}(Foo);
|
|
|
|
var _prop2 = new WeakMap();
|