fs: add validation for fd and path · nodejs/node@d4693ff · GitHub
Skip to content

Commit d4693ff

Browse files
fs: add validation for fd and path
Adds type validation to options fd & opts in `fs.createWriteStream` and `fs.createReadStream`. Fixes: #35178 PR-URL: #35187 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent d08ea01 commit d4693ff

2 files changed

Lines changed: 66 additions & 1 deletion

File tree

lib/internal/fs/streams.js

Lines changed: 17 additions & 1 deletion
Lines changed: 49 additions & 0 deletions

0 commit comments

Comments
 (0)