Re: [whatwg/streams] Assert there are no pending reads when releasing lock (#1168)

@MattiasBuelens commented on this pull request.



> @@ -2773,6 +2783,15 @@ The following abstract operations support the implementation and manipulation of
      |stream|.[=ReadableStream/[[controller]]=].[$ReadableStreamController/[[PullSteps]]$](|readRequest|).
 </div>
 
+<div algorithm>
+ <dfn abstract-op lt="ReadableStreamDefaultReaderRelease"
+ id="readable-stream-default-reader-release">ReadableStreamDefaultReaderRelease(|reader|)</dfn>
+ performs the following steps:
+
+ 1. Assert: |reader|.[=ReadableStreamDefaultReader/[[readRequests]]=] is [=list/is empty|empty=].

Still need to update the spec text to match the reference implementation. (This will now reject all pending reads.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1168#pullrequestreview-780317746

Received on Thursday, 14 October 2021 22:50:08 UTC