You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the docs fs.stat(fd, undefined, callback) is not a valid signature - when the second parameter is passed, it must be an object. But a better error message would be nice - or we could support undefined as option by making the second parameter default to {}. Marking as a good-first-issue. (note that this also happens to fs.fstat and fs.lstat)
Activity
fs: add default options
Trott commentedon Aug 14, 2019
@nodejs/fs
joyeecheung commentedon Aug 14, 2019
From the docs
fs.stat(fd, undefined, callback)is not a valid signature - when the second parameter is passed, it must be an object. But a better error message would be nice - or we could support undefined as option by making the second parameter default to{}. Marking as a good-first-issue. (note that this also happens tofs.fstatandfs.lstat)c0deWookiee commentedon Aug 15, 2019
UziTech commentedon Aug 15, 2019
@c0deWookiee there is already a PR that fixes this issue #29114
fs: add default options for *stat()