Explorar el Código

Merge pull request #3 from patrickpang/patch-1

Bugfix.
Eugene Lazutkin hace 5 años
padre
commit
90533a2ddc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -22,7 +22,7 @@ const runAsyncGenerator = async (gen, stream) => {
       data = await data;
     }
     if (data.done) break;
-    const value = data.value;
+    let value = data.value;
     if (value && typeof value.then == 'function') {
       value = await value;
     }