* 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
37 lines
900 B
JavaScript
37 lines
900 B
JavaScript
var A =
|
|
/*#__PURE__*/
|
|
function () {
|
|
"use strict";
|
|
|
|
function A() {
|
|
babelHelpers.classCallCheck(this, A);
|
|
}
|
|
|
|
babelHelpers.createClass(A, [{
|
|
key: "foo",
|
|
value: function foo() {
|
|
return "bar";
|
|
}
|
|
}]);
|
|
return A;
|
|
}();
|
|
|
|
var B =
|
|
/*#__PURE__*/
|
|
function (_A) {
|
|
"use strict";
|
|
|
|
babelHelpers.inherits(B, _A);
|
|
|
|
function B(...args) {
|
|
var _temp, _this;
|
|
|
|
babelHelpers.classCallCheck(this, B);
|
|
return babelHelpers.possibleConstructorReturn(_this, (_temp = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(B).call(this, ...args)), _foo.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), babelHelpers.get(babelHelpers.getPrototypeOf(B.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this))), _temp));
|
|
}
|
|
|
|
return B;
|
|
}(A);
|
|
|
|
var _foo = new WeakMap();
|