| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
Treat writer.writev() returning undefined as synchronous success to match the existing write() fallback behavior for duck-typed writers. This avoids calling Promise.prototype.then on undefined after a batch write has already been accepted. Fixes: nodejs#63560 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63561 +/- ##
==========================================
- Coverage 90.33% 90.32% -0.02%
==========================================
Files 730 730
Lines 234362 234472 +110
Branches 43906 43916 +10
==========================================
+ Hits 211713 211781 +68
- Misses 14371 14433 +62
+ Partials 8278 8258 -20
... and 43 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
Sorry, something went wrong.
Treat writer.writev() returning undefined as synchronous success to match the existing write() fallback behavior for duck-typed writers. This avoids calling Promise.prototype.then on undefined after a batch write has already been accepted. Fixes: #63560 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63561 Fixes: #63560 Reviewed-By: James M Snell <jasnell@gmail.com>
Treat writer.writev() returning undefined as synchronous success to match the existing write() fallback behavior for duck-typed writers. This avoids calling Promise.prototype.then on undefined after a batch write has already been accepted. Fixes: nodejs#63560 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: nodejs#63561 Fixes: nodejs#63560 Reviewed-By: James M Snell <jasnell@gmail.com>
Treat writer.writev() returning undefined as synchronous success to match the existing write() fallback behavior for duck-typed writers. This avoids calling Promise.prototype.then on undefined after a batch write has already been accepted. Fixes: #63560 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63561 Backport-PR-URL: #64675 Fixes: #63560 Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes: #63560
Fixes stream/iter pipeTo() when a duck-typed writer accepts a batched
writev() synchronously and returns undefined.
pipeTo() already tolerated undefined from single write() calls, but the
writev() path passed the return value directly to PromisePrototypeThen(),
which caused a TypeError for synchronous completion.
Assisted-by: openai:gpt-5.5