packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-functions/this/output.js
raw| 1 | function b() { |
| 2 | var _this = this; |
| 3 | var t = function (x) { |
| 4 | return _this.x + x; |
| 5 | }; |
| 6 | } |
| 7 | class Foo extends function () {} { |
| 8 | constructor() { |
| 9 | var _this2; |
| 10 | var foo = function () { |
| 11 | return _this2; |
| 12 | }; |
| 13 | if (true) { |
| 14 | console.log((super(), _this2 = this), foo()); |
| 15 | } else { |
| 16 | super(); |
| 17 | _this2 = this; |
| 18 | console.log(foo()); |
| 19 | } |
| 20 | } |
| 21 | } |