issues Search Results · repo:tc39/proposal-array-from-async language:HTML
Filter by
26 results
(82 ms)26 results
intc39/proposal-array-from-async (press backspace or delete to remove)Previously, for await did not close sync iterables when they yield rejected promises (tc39/ecma262#1849):
details summary Code example /summary
function * createIter() {
try {
yield Promise.resolve(console.log( ...
js-choi
- 4
- Opened on Apr 1
- #49
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 ...
tchetwin
- 5
- Opened on Mar 3
- #47
After #36 was merged, Array.fromAsync spec now depends on tc39/ecma262#2942, just like proposal-async-iterator-helpers.
@bakkot points out that the current spec uses AsyncFunctionStart directly rather ...
js-choi
- 1
- Opened on Nov 1, 2023
- #43
I am interested in this proposal but would like clarification on the above. My use-case would be to filter a current
Array using an async mapFn to return a new Array with only the values that passed the ...
question
secondl1ght
- 4
- Opened on Aug 4, 2023
- #42
for await is known to not close sync iterables if rejected promise is emited. Like
function* It() {
try {
yield Promise.resolve( a )
yield Promise.reject( b )
} finally {
console.log( ...
documentation
vadzim
- 2
- Opened on Mar 2, 2023
- #39
As written, the spec -may- double counstruct A:
It will be constructed first as part of Step 3.{e,f}; then if iteratorRecord is undefined, it s constructed again in
Step 3.k.{iv,v}.
Probably that first ...
mgaudet
- 3
- Opened on Oct 18, 2022
- #35
Other recent proposals adding methods to Array.prototype have added the name to Array.prototype[@@unscopables] -- I sort
of imagine fromAsync should get added too.
mgaudet
- 2
- Opened on Oct 14, 2022
- #34
In the published spec, Step 3.j.ii.3 and 4 are the termination condition of the iteration:
- Step 3.j.ii.3 Let next be ? Await(IteratorStep(iteratorRecord)).
- Step 3.j.ii.4 If next is false, then... ...
bug
mgaudet
- 2
- Opened on Oct 14, 2022
- #33
fromAsync makes use of an Abstract Closure passed to AsyncFunctionStart. What is the return type of this closure? The
use of ? implies it must be a Completion Record, but there s also a bare Return A. ...
question
bakkot
- 2
- Opened on Aug 11, 2022
- #31
Right now, the proposed algorithm uses %Array.prototype.values%, CreateArrayIterator, and %ArrayIteratorPrototype%. This
is a shortcut for the machinery that handles non-iterable array-like objects, like ...
question
js-choi
- 1
- Opened on Jul 20, 2022
- #29

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.