* initial code 2 fix the issue #2025 * Mark class prototype as read-only * Update fixtures * Fix failure * Update Babel 8 fixtures * Disable in loose mode * Update fixtures Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
26 lines
624 B
JavaScript
26 lines
624 B
JavaScript
var Foo = /*#__PURE__*/function (_Bar) {
|
|
"use strict";
|
|
|
|
babelHelpers.inherits(Foo, _Bar);
|
|
|
|
var _super = babelHelpers.createSuper(Foo);
|
|
|
|
function Foo() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
if (condition) {
|
|
_this = _super.call(this);
|
|
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "bar", "foo");
|
|
} else {
|
|
_this = _super.call(this);
|
|
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "bar", "foo");
|
|
}
|
|
|
|
return babelHelpers.possibleConstructorReturn(_this);
|
|
}
|
|
|
|
return babelHelpers.createClass(Foo);
|
|
}(Bar);
|