- From: Mattias Buelens <notifications@github.com>
- Date: Tue, 18 Oct 2022 11:53:53 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 October 2022 18:54:06 UTC
You're right, this can be an assert. 👍 Same thing for the async iterator return steps: Web IDL guarantees that this will only be called when the iterator's "is finished" is still `false`, and it immediately sets it to `true` after running those steps for the first (and only) time. The Web IDL machinery for async iteration did not yet exist when we first specced this in #980, so these checks were necessary back then. But nowadays, we can rely on Web IDL instead. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/1246#issuecomment-1282864948 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/streams/issues/1246/1282864948@github.com>
Received on Tuesday, 18 October 2022 18:54:06 UTC