stream: use validateObject for zlib/iter params · nodejs/node@6a2e056 · GitHub
Skip to content

Commit 6a2e056

Browse files
greenheadHQaduh95
authored andcommitted
stream: use validateObject for zlib/iter params
The kValidateObjectAllowArray flag matches the replaced check: arrays keep passing and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65015 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4f6f2cf commit 6a2e056

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

lib/internal/streams/iter/transform.js

Lines changed: 2 additions & 3 deletions
Lines changed: 30 additions & 0 deletions

0 commit comments

Comments
 (0)