| 1 |
var _getStatus = /*#__PURE__*/new WeakSet(); |
| 2 |
class Foo { |
| 3 |
constructor(status) { |
| 4 |
babelHelpers.classPrivateMethodInitSpec(this, _getStatus); |
| 5 |
this.status = status; |
| 6 |
} |
| 7 |
getCurrentStatus() { |
| 8 |
return babelHelpers.classPrivateMethodGet(this, _getStatus, _getStatus2).call(this); |
| 9 |
} |
| 10 |
setCurrentStatus(newStatus) { |
| 11 |
this.status = newStatus; |
| 12 |
} |
| 13 |
getFakeStatus(fakeStatus) { |
| 14 |
var fakeGetStatus = babelHelpers.classPrivateMethodGet(this, _getStatus, _getStatus2); |
| 15 |
return function () { |
| 16 |
return fakeGetStatus.call({ |
| 17 |
status: fakeStatus |
| 18 |
}); |
| 19 |
}; |
| 20 |
} |
| 21 |
getFakeStatusFunc() { |
| 22 |
return { |
| 23 |
status: 'fake-status', |
| 24 |
getFakeStatus: babelHelpers.classPrivateMethodGet(this, _getStatus, _getStatus2) |
| 25 |
}; |
| 26 |
} |
| 27 |
} |
| 28 |
function _getStatus2() { |
| 29 |
return this.status; |
| 30 |
} |