tc39 / proposal-iterator.range

A proposal for ECMAScript to add a built-in Iterator.range()
https://tc39.es/proposal-iterator.range/
MIT License
487 stars 13 forks source link

Editorial: Switch to CreateIteratorFromClosure #37

Closed Jack-Works closed 4 years ago

Jack-Works commented 4 years ago

Thanks to the cool trick from @mmis1000! I rewrite the polyfill so it can have "internal slots" on the generator object.

Andrew-Cottrell commented 4 years ago

Maybe reinstate these comments?

// syntax target = es2020
// This polyfill requires: globalThis, BigInt & private fields