| 1 |
"use strict"; |
| 2 |
|
| 3 |
let Hello = function () { |
| 4 |
function Hello() { |
| 5 |
babelHelpers.classCallCheck(this, Hello); |
| 6 |
} |
| 7 |
babelHelpers.createClass(Hello, [{ |
| 8 |
key: "toString", |
| 9 |
value: function toString() { |
| 10 |
return 'hello'; |
| 11 |
} |
| 12 |
}]); |
| 13 |
return Hello; |
| 14 |
}(); |
| 15 |
let Outer = function (_Hello) { |
| 16 |
babelHelpers.inherits(Outer, _Hello); |
| 17 |
var _super = babelHelpers.createSuper(Outer); |
| 18 |
function Outer() { |
| 19 |
let _babelHelpers$get$cal, _babelHelpers$get$cal2; |
| 20 |
var _thisSuper, _this; |
| 21 |
babelHelpers.classCallCheck(this, Outer); |
| 22 |
_this = _super.call(this); |
| 23 |
var _A = new WeakMap(); |
| 24 |
_babelHelpers$get$cal = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Outer.prototype)), "toString", _thisSuper).call(_thisSuper); |
| 25 |
_babelHelpers$get$cal2 = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Outer.prototype)), "toString", _thisSuper).call(_thisSuper); |
| 26 |
let Inner = function () { |
| 27 |
function Inner() { |
| 28 |
babelHelpers.classCallCheck(this, Inner); |
| 29 |
babelHelpers.classPrivateFieldInitSpec(this, _A, { |
| 30 |
writable: true, |
| 31 |
value: 'hello' |
| 32 |
}); |
| 33 |
} |
| 34 |
babelHelpers.createClass(Inner, [{ |
| 35 |
key: _babelHelpers$get$cal, |
| 36 |
get: function () { |
| 37 |
return babelHelpers.classPrivateFieldGet(this, _A); |
| 38 |
} |
| 39 |
}, { |
| 40 |
key: _babelHelpers$get$cal2, |
| 41 |
set: function (v) { |
| 42 |
babelHelpers.classPrivateFieldSet(this, _A, v); |
| 43 |
} |
| 44 |
}]); |
| 45 |
return Inner; |
| 46 |
}(); |
| 47 |
return babelHelpers.possibleConstructorReturn(_this, new Inner()); |
| 48 |
} |
| 49 |
return babelHelpers.createClass(Outer); |
| 50 |
}(Hello); |
| 51 |
expect(new Outer().hello).toBe('hello'); |