Re: [whatwg/streams] Export "set up reader/writer" algorithms for other specs (PR #1370)

@annevk commented on this pull request.



> @@ -7133,6 +7133,16 @@ failures should be handled by the calling specification.
  <p class="note">This will throw an exception if |stream| is already [=ReadableStream/locked=].
 </div>
 
+<div algorithm>
+ <p>To <dfn export for="ReadableStreamDefaultReader">set up</dfn> a newly-[=new|created-via-Web IDL=]

I see. I think that's correct although Web IDL construction isn't defined in much detail. I think what would be clearer however is if we can assert something about _reader_ instead that requires someone to use IDL new.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1370?email_source=notifications&email_token=ACLYVMJSNFZJM5BF6PTKA7T4W7NIBA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMJVGA3DSNBUGUYKM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS6XA4S7OJSXM2LFO5PW433UNFTGSY3BORUW63TTL5RWY2LDNM#discussion_r3120230671
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1370/review/4150694450@github.com>

Received on Tuesday, 21 April 2026 20:50:12 UTC