packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-arrow-in-method/output.js
raw symbols SCIP| 1 | let TestClass = { |
| 2 | name: "John Doe", |
| 3 | testMethodFailure() { |
| 4 | var _this = this; |
| 5 | return new Promise( /*#__PURE__*/function () { |
| 6 | var _ref = babelHelpers.asyncToGenerator(function* (resolve) { |
| 7 | console.log(_this); |
| 8 | setTimeout(resolve, 1000); |
| 9 | }); |
| 10 | return function (_x) { |
| 11 | return _ref.apply(this, arguments); |
| 12 | }; |
| 13 | }()); |
| 14 | } |
| 15 | }; |