Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/workerd/api/streams/standard.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ template <typename Self>
void WritableImpl<Self>::updateBackpressure(jsg::Lock& js) {
KJ_ASSERT(isWritable());
KJ_ASSERT(!isCloseQueuedOrInFlight());
bool bp = getDesiredSize() < 0;
bool bp = getDesiredSize() <= 0;

if (bp != flags.backpressure) {
flags.backpressure = bp;
Expand Down
9 changes: 1 addition & 8 deletions src/wpt/streams-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ export default {
expectedFailures: [
'start: errors in start cause WritableStream constructor to throw',
'write: returning a rejected promise (second write) should cause writer write() and ready to reject',
'write: returning a promise that becomes rejected after the writer write() should cause writer write() and ready to reject',
],
},
'writable-streams/byte-length-queuing-strategy.any.js': {
Expand All @@ -764,7 +763,6 @@ export default {
'writable-streams/close.any.js': {
comment: 'To be investigated',
expectedFailures: [
'when close is called on a WritableStream in waiting state, ready promise should be fulfilled',
'releaseLock() should not change the result of sync close()',
],
},
Expand Down Expand Up @@ -817,10 +815,5 @@ export default {
"underlying sink's write or close should not be called if start throws",
],
},
'writable-streams/write.any.js': {
comment: 'To be investigated',
expectedFailures: [
'WritableStream should transition to waiting until write is acknowledged',
],
},
'writable-streams/write.any.js': {},
} satisfies TestRunnerConfig;