-
Couldn't load subscription status.
- Fork 168
Fix invalid high water mark for tee branches #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2073,7 +2073,7 @@ The following abstract operations operate on {{ReadableStream}} instances at a h | |
| 1. Perform ! [$InitializeReadableStream$](|stream|). | ||
| 1. Let |controller| be a [=new=] {{ReadableByteStreamController}}. | ||
| 1. Perform ? [$SetUpReadableByteStreamController$](|stream|, |controller|, |startAlgorithm|, | ||
| |pullAlgorithm|, |cancelAlgorithm|, 0, undefined). | ||
| |pullAlgorithm|, |cancelAlgorithm|, 1, undefined). | ||
| 1. Return |stream|. | ||
|
|
||
| <p class="note">This abstract operation will throw an exception if and only if the supplied | ||
|
|
@@ -6459,7 +6459,7 @@ abstract operations are used to implement these "cross-realm transforms". | |
| 1. Otherwise, return [=a promise resolved with=] undefined. | ||
| 1. Let |sizeAlgorithm| be an algorithm that returns 1. | ||
| 1. Perform ! [$SetUpReadableStreamDefaultController$](|stream|, |controller|, |startAlgorithm|, | ||
| |pullAlgorithm|, |cancelAlgorithm|, 0, |sizeAlgorithm|). | ||
| |pullAlgorithm|, |cancelAlgorithm|, 1, |sizeAlgorithm|). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the SetUpCrossRealmTransformReadable abstract operation, not the ReadableStreamDefaultTee abstract operation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, you’re right. |
||
|
|
||
| <p class="note">Implementations are encouraged to explicitly handle failures from the asserts in | ||
| this algorithm, as the input might come from an untrusted context. Failure to do so could lead to | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value 0 matches what the reference implementation does, and the reference implementation passes the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I did not realize that ReadableStreamDefaultControllerShouldCallPull ReadableByteStreamControllerShouldCallPull return early to so that when strategyHWM = 0, then no queuing is used. That is a very nice feature.