Content-Length: 280986 | pFad | https://github.com/nodejs/node/commit/e658ea6b26
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 406e7db commit e658ea6Copy full SHA for e658ea6
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/e658ea6b26
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments