Skip to content
Open
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
4 changes: 3 additions & 1 deletion test/parallel/test-blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ assert.throws(() => new Blob({}), {
assert.strictEqual(value.byteLength, 5);
assert(!done);
setTimeout(common.mustCall(() => {
assert.strictEqual(stream[kState].controller.desiredSize, 0);
// Same setImmediate() pull vs. timer race as the non-BYOB case above:
// the stream may already have pulled the next 'hello' (5 bytes), hence -5.
assert([0, -5].includes(stream[kState].controller.desiredSize));
}), 0);
})().then(common.mustCall());

Expand Down
Loading