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,10 +1,10 @@
import { coroutine as _coroutine } from "bluebird";
var foo = (() => {
var ref = _coroutine(function* () {
var _ref = _coroutine(function* () {
var wat = yield bar();
});
return function foo() {
return ref.apply(this, arguments);
return _ref.apply(this, arguments);
};
})();

View File

@@ -1,11 +1,11 @@
import { coroutine as _coroutine } from "bluebird";
var foo = (() => {
var ref = _coroutine(function* () {
var _ref = _coroutine(function* () {
console.log(bar);
});
function bar() {
return ref.apply(this, arguments);
return _ref.apply(this, arguments);
}
return bar;

View File

@@ -1,11 +1,11 @@
import { coroutine as _coroutine } from "bluebird";
let foo = (() => {
var ref = _coroutine(function* () {
var _ref = _coroutine(function* () {
var wat = yield bar();
});
return function foo() {
return ref.apply(this, arguments);
return _ref.apply(this, arguments);
};
})();