output.js 1.3 KB

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