diff options
author | Tony Brix <tony@brix.ninja> | 2019-08-14 00:15:10 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-16 15:51:56 -0700 |
commit | 4111c57f7ca3fd2993b60e86bea2abe63d124c65 (patch) | |
tree | 2e524e5fa7fe8d4e4d2701e93b50c2d136fc8d9d /test | |
parent | 841df6a9b68f431129343c49fc9bb6ed4d83f89b (diff) | |
download | android-node-v8-4111c57f7ca3fd2993b60e86bea2abe63d124c65.tar.gz android-node-v8-4111c57f7ca3fd2993b60e86bea2abe63d124c65.tar.bz2 android-node-v8-4111c57f7ca3fd2993b60e86bea2abe63d124c65.zip |
fs: add default options for *stat()
PR-URL: https://github.com/nodejs/node/pull/29114
Fixes: https://github.com/nodejs/node/issues/29113
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-fs-stat.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parallel/test-fs-stat.js b/test/parallel/test-fs-stat.js index d52eb6d8fd..bde3e06765 100644 --- a/test/parallel/test-fs-stat.js +++ b/test/parallel/test-fs-stat.js @@ -154,3 +154,14 @@ fs.stat(__filename, common.mustCall(function(err, s) { } ); }); + +// Should not throw an error +fs.stat(__filename, undefined, common.mustCall(() => {})); + +fs.open(__filename, 'r', undefined, common.mustCall((err, fd) => { + // Should not throw an error + fs.fstat(fd, undefined, common.mustCall(() => {})); +})); + +// Should not throw an error +fs.lstat(__filename, undefined, common.mustCall(() => {})); |