Re: [whatwg/streams] Add support for ReadableStream "owning" type (PR #1271)

@youennf commented on this pull request.



> @@ -40,6 +42,18 @@ exports.PeekQueueValue = container => {
 exports.ResetQueue = container => {
   assert('_queue' in container && '_queueTotalSize' in container);
 
+  if (container._isOwning) {
+    while (container._queue.length > 0) {
+      const value = exports.DequeueValue(container);
+      if (typeof value.close === 'function') {

I switched to a private symbol, it is anyway difficult to test.

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

Message ID: <whatwg/streams/pull/1271/review/1393367284@github.com>

Received on Thursday, 20 April 2023 07:24:13 UTC