Fix non-unique 'ref' binding name - fixes T7468

This commit is contained in:
Logan Smyth
2016-06-28 19:11:28 -07:00
parent e390570f9d
commit 231f27f170
16 changed files with 64 additions and 48 deletions

View File

@@ -1,15 +1,16 @@
var concat = function () {
var ref = babelHelpers.asyncToGenerator(function* () {
var _ref = babelHelpers.asyncToGenerator(function* () {
var x = arguments.length <= 0 ? undefined : arguments[0];
var y = arguments.length <= 1 ? undefined : arguments[1];
});
return function concat() {
return ref.apply(this, arguments);
return _ref.apply(this, arguments);
};
}();
var x = function () {
var ref = babelHelpers.asyncToGenerator(function* () {
var _ref2 = babelHelpers.asyncToGenerator(function* () {
for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
@@ -17,7 +18,8 @@ var x = function () {
if (noNeedToWork) return 0;
return rest;
});
return function x() {
return ref.apply(this, arguments);
return _ref2.apply(this, arguments);
};
}();