File tree
Expand file treeCollapse file tree1 file changed
+10
-1
lines changed Expand file treeCollapse file tree1 file changed
+10
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -1167,9 +1167,18 @@ function writableStreamDefaultControllerGetDesiredSize(controller) {
|
1167 | 1167 | }
|
1168 | 1168 |
|
1169 | 1169 | function writableStreamDefaultControllerGetChunkSize(controller, chunk) {
|
| 1170 | +const { |
| 1171 | +stream, |
| 1172 | +sizeAlgorithm, |
| 1173 | +} = controller[kState]; |
| 1174 | +if (sizeAlgorithm === undefined) { |
| 1175 | +assert(stream[kState].state === 'errored' || stream[kState].state === 'erroring'); |
| 1176 | +return 1; |
| 1177 | +} |
| 1178 | + |
1170 | 1179 | try {
|
1171 | 1180 | return FunctionCall(
|
1172 |
| -controller[kState].sizeAlgorithm, |
| 1181 | +sizeAlgorithm, |
1173 | 1182 | undefined,
|
1174 | 1183 | chunk);
|
1175 | 1184 | } catch (error) {
|
|
You can’t perform that action at this time.
0 commit comments