| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -384,7 +384,9 @@ assert.throws(() => new Blob({}), { | |||
| 384 | 384 | assert.strictEqual(value.byteLength, 5); | |
| 385 | 385 | assert(!done); | |
| 386 | 386 | setTimeout(common.mustCall(() => { | |
| 387 | - assert.strictEqual(stream[kState].controller.desiredSize, 0); | ||
| 387 | + // Same setImmediate() pull vs. timer race as the non-BYOB case above: | ||
| 388 | + // the stream may already have pulled the next 'hello' (5 bytes), hence -5. | ||
| 389 | + assert([0, -5].includes(stream[kState].controller.desiredSize)); | ||
| 388 | 390 | }), 0); | |
| 389 | 391 | })().then(common.mustCall()); | |
| 390 | 392 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments