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

Fix badCallback will only throw if iterable has items #15

Closed senocular closed 2 years ago

senocular commented 2 years ago

This is consistent with Array.from where Array.from([], ()=>{throw 1}) will not throw but Array.from([1], ()=>{throw 1}) will.