Ver Fonte

Merge pull request #3 from patrickpang/patch-1

Bugfix.
Eugene Lazutkin há 5 anos atrás
pai
commit
90533a2ddc
1 ficheiros alterados com 1 adições e 1 exclusões
  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;
     }