Content-Length: 280987 | pFad | https://github.com/nodejs/node/commit/3a3f5c9a64
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4930244 commit 3a3f5c9Copy full SHA for 3a3f5c9
lib/internal/webstreams/writablestream.js
@@ -1176,9 +1176,18 @@ function writableStreamDefaultControllerGetDesiredSize(controller) {
1176
}
1177
1178
function writableStreamDefaultControllerGetChunkSize(controller, chunk) {
1179
+ const {
1180
+ stream,
1181
+ sizeAlgorithm,
1182
+ } = controller[kState];
1183
+ if (sizeAlgorithm === undefined) {
1184
+ assert(stream[kState].state === 'errored' || stream[kState].state === 'erroring');
1185
+ return 1;
1186
+ }
1187
+
1188
try {
1189
return FunctionPrototypeCall(
- controller[kState].sizeAlgorithm,
1190
1191
undefined,
1192
chunk);
1193
} catch (error) {
Fetched URL: https://github.com/nodejs/node/commit/3a3f5c9a64
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments