iterator-helpers-polyfill icon indicating copy to clipboard operation
iterator-helpers-polyfill copied to clipboard

[Bug] Amend changes from stage 3 sync and stage 2 async iterator helpers proposals

Open MadProbe opened this issue 1 year ago • 0 comments

Self-explanatory

Namely:

  1. Make Promise returning helpers throw errors asynchronously (reject promise), rather than synchronously
  2. 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)
  3. Export .toAsync()

MadProbe avatar Mar 06 '23 19:03 MadProbe