tc39 / proposal-array-from-async

Draft specification for a proposed Array.fromAsync method in JavaScript.
http://tc39.es/proposal-array-from-async/
BSD 3-Clause "New" or "Revised" License
177 stars 13 forks source link

refactor: Copy Array.from’s array-like loop #30

Closed js-choi closed 2 years ago

js-choi commented 2 years ago

Removes use of %Array.prototype.values%. Closes #29. Also affects #14. Maybe in the future we can come back to this and simplify both Array.from and Array.fromAsync with %Array.prototype.values%. Because we haven’t confirmed that this is truly unobservable, today is not that day.

js-choi commented 2 years ago

Perhaps there is a common AO between Array.from and Array.fromAsync, but, since that’d be an editorial change, we can do that in a separate Ecma262 pull request after this proposal gets Stage-4 merged. (And I’m still holding out hope for the %Array.prototype.values% simplification being unobservable…)