Fix non-unique 'ref' binding name - fixes T7468
This commit is contained in:
@@ -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);
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user