Skip to content

Commit

Permalink
Fix early break
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb committed Jul 23, 2023
1 parent 0a1dc40 commit f3050c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Expand Up @@ -319,6 +319,11 @@ export function pMapIterable(
valuePromises.push({resolve, reject});
});
},
async return() {
isDone = true;

return {done: true};
},
};
},
};
Expand Down

0 comments on commit f3050c0

Please sign in to comment.