mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
25 lines
561 B
JavaScript
25 lines
561 B
JavaScript
class MyClass {
|
|
constructor() {
|
|
var _this = this;
|
|
this.myAsyncMethod = /*#__PURE__*/babelHelpers.asyncToGenerator(function* () {
|
|
console.log(_this);
|
|
});
|
|
}
|
|
}
|
|
(class MyClass2 {
|
|
constructor() {
|
|
var _this2 = this;
|
|
this.myAsyncMethod = /*#__PURE__*/babelHelpers.asyncToGenerator(function* () {
|
|
console.log(_this2);
|
|
});
|
|
}
|
|
});
|
|
export default class MyClass3 {
|
|
constructor() {
|
|
var _this3 = this;
|
|
this.myAsyncMethod = /*#__PURE__*/babelHelpers.asyncToGenerator(function* () {
|
|
console.log(_this3);
|
|
});
|
|
}
|
|
}
|