Update ongoing promise in async iterator `return()` method
Closed this issue ยท 2 comments
MattiasBuelens commented
There's an edge case with the current Web IDL bindings for async iterators where manually calling return(); next()
could result in the next()
promise resolving before the return()
promise. The latest version of the Web IDL specification fixes this by updating the "ongoing promise" in the async iterator return()
method.
- Web IDL spec change
- Web platform tests (for
ReadableStream[@@asyncIterator]
)
MattiasBuelens commented
Apologies, I mean to file this bug on the (very similarly named) webidl2js project. ๐
Since the aforementioned spec change does not affect the Web IDL syntax, no action needs to be taken on the part of webidl2.js. Closing.
saschanaz commented
Haha that often confused myself too ๐