Arrow functions can't be entrly skipped while traversing because this references inside of them needs to be transformed, so I added a check which prevents return statements inside arrow functions from being saved for the transformation. Fixes #5817 (regression)
25 lines
417 B
JavaScript
25 lines
417 B
JavaScript
"use strict";
|
|
|
|
var A = function (_B) {
|
|
babelHelpers.inherits(A, _B);
|
|
|
|
function A() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, A);
|
|
_this = babelHelpers.possibleConstructorReturn(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this));
|
|
|
|
_this.arrow1 = function (x) {
|
|
return x;
|
|
};
|
|
|
|
_this.arrow2 = function (x) {
|
|
return x;
|
|
};
|
|
|
|
return _this;
|
|
}
|
|
|
|
return A;
|
|
}(B);
|