packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/output.js
raw symbols SCIP| 1 | const triple = function (x) { |
| 2 | return x * 3; |
| 3 | }; |
| 4 | async function myFunction(n) { |
| 5 | var _ref, _ref2, _ref3, _n; |
| 6 | return _ref = (_ref2 = (_ref3 = (_n = n, Math.abs(_n)), Promise.resolve(_ref3)), await _ref2), triple(_ref); |
| 7 | } |
| 8 | return myFunction(-7).then(function (result) { |
| 9 | expect(result).toBe(21); |
| 10 | }); |