Re: [whatwg/streams] Make it clear that a chunk size has to be non-negative (#999)

MattiasBuelens commented on this pull request.



> @@ -5051,7 +5051,7 @@ properties:
 <dl>
   <dt><dfn method for="queuing strategy">size(<var>chunk</var>)</dfn> (non-byte streams only)</dt>
   <dd>
-    <p>A function that computes and returns the size of the given <a>chunk</a> value.</p>
+    <p>A function that computes and returns the non-negative size of the given <a>chunk</a> value.</p>

If we want to be **really** precise, we could exclude `+Infinity` as well:
> returns the finite non-negative size


-- 
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/999#pullrequestreview-218047427

Received on Saturday, 23 March 2019 17:17:23 UTC