fix: variable scope

This commit is contained in:
waiting
2017-09-24 16:56:34 +08:00
parent 7030c70270
commit 37b125e7fa
+2 -1
View File
@@ -505,8 +505,9 @@ function spawn(genF) {
return new Promise(function(resolve, reject) {
const gen = genF();
function step(nextF) {
let next;
try {
var next = nextF();
next = nextF();
} catch(e) {
return reject(e);
}