iterator-helpers-polyfill
iterator-helpers-polyfill copied to clipboard
[Bug] Amend changes from stage 3 sync and stage 2 async iterator helpers proposals
Self-explanatory
Namely:
- Make Promise returning helpers throw errors asynchronously (reject promise), rather than synchronously
- Make special %IteratorHelperPrototype% class and wrap the generators around them without next-passing behavior unless runtime flag set (e.g. send no arguments to next, can also handled in this class btw)
- Export .toAsync()