You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update ongoing promise in async iterator return() method #51725
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.
For Node.js, this affects ReadableStream.prototype[Symbol.asyncIterator]. More specifically, this part needs to be changed:
Activity
aduh95 commentedon Feb 12, 2024
/cc @nodejs/whatwg-stream
mcollina commentedon Feb 13, 2024
Good finding! Are you planning to send a PR to fix?
MattiasBuelens commentedon Feb 13, 2024
@mcollina Sure, I can do that. I'll wait for the spec change to land first.