stream: skip null output from stateful transforms · nodejs/node@136d4e7 · GitHub
Skip to content

Commit 136d4e7

Browse files
trivikraduh95
authored andcommitted
stream: skip null output from stateful transforms
Treat null yielded by sync and async stateful transforms as no output, consistent with transform normalization semantics. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> PR-URL: #64462 Fixes: #64461 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent 707f6ea commit 136d4e7

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

lib/internal/streams/iter/pull.js

Lines changed: 2 additions & 0 deletions

test/parallel/test-stream-iter-transform-output.js

Lines changed: 24 additions & 0 deletions

0 commit comments

Comments
 (0)