Re: [whatwg/streams] [[stream]] can not be undefined in "get the next iteration result" (Issue #1246)

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