| 1 |
class Test { |
| 2 |
static method1() { |
| 3 |
var _this = this; |
| 4 |
return babelHelpers.asyncToGenerator(function* () { |
| 5 |
console.log(_this); |
| 6 |
setTimeout( /*#__PURE__*/babelHelpers.asyncToGenerator(function* () { |
| 7 |
console.log(_this); |
| 8 |
})); |
| 9 |
})(); |
| 10 |
} |
| 11 |
static method2() { |
| 12 |
var _this2 = this; |
| 13 |
return babelHelpers.asyncToGenerator(function* () { |
| 14 |
console.log(_this2); |
| 15 |
setTimeout( /*#__PURE__*/function () { |
| 16 |
var _ref2 = babelHelpers.asyncToGenerator(function* (arg) { |
| 17 |
console.log(_this2); |
| 18 |
}); |
| 19 |
return function (_x) { |
| 20 |
return _ref2.apply(this, arguments); |
| 21 |
}; |
| 22 |
}()); |
| 23 |
})(); |
| 24 |
} |
| 25 |
method1() { |
| 26 |
var _this3 = this; |
| 27 |
return babelHelpers.asyncToGenerator(function* () { |
| 28 |
console.log(_this3); |
| 29 |
setTimeout( /*#__PURE__*/babelHelpers.asyncToGenerator(function* () { |
| 30 |
console.log(_this3); |
| 31 |
})); |
| 32 |
})(); |
| 33 |
} |
| 34 |
method2() { |
| 35 |
var _this4 = this; |
| 36 |
return babelHelpers.asyncToGenerator(function* () { |
| 37 |
console.log(_this4); |
| 38 |
setTimeout( /*#__PURE__*/function () { |
| 39 |
var _ref4 = babelHelpers.asyncToGenerator(function* (arg) { |
| 40 |
console.log(_this4); |
| 41 |
}); |
| 42 |
return function (_x2) { |
| 43 |
return _ref4.apply(this, arguments); |
| 44 |
}; |
| 45 |
}()); |
| 46 |
})(); |
| 47 |
} |
| 48 |
} |