proposal-array-from-async icon indicating copy to clipboard operation
proposal-array-from-async copied to clipboard

Draft specification for a proposed Array.fromAsync method in JavaScript.

Results 5 proposal-array-from-async issues
Sort by recently updated
recently updated
newest added

After #36 was merged, Array.fromAsync spec now depends on tc39/ecma262#2942, just like [proposal-async-iterator-helpers](https://github.com/tc39/proposal-async-iterator-helpers). @bakkot points out that the current spec uses AsyncFunctionStart directly rather than defining Async.fromAsync as a “built-in...

As per the [TC39 process document](https://tc39.es/process-document/). - [x] @ljharb - [x] @nicolo-ribaudo Editors: - [ ] @syg - [ ] @michaelficarra - [ ] @bakkot

question

Hey, I was wondering, since `Array.fromAsync(iter)` is similar to `AsyncIterator.from(iter).toArray()` wouldn't it make sense if they shared the same spec text? That is one (for example fromAsync) is defined and...

question

See linked ECMA-262 commits in each commit messages.

Things are looking very healthy for when this is ready for Stage advancement: ### Implementations * [x] Chrome (121): https://chromestatus.com/feature/5069575759069184 * [x] Firefox (115): https://bugzilla.mozilla.org/show_bug.cgi?id=1795816 * [x] Safari (16.4): https://webkit.org/blog/13966/webkit-features-in-safari-16-4/#javascript-and-webassembly...