Skip to content

Commit 867edd1

Browse files
committed
test: undefined for fs.stat options
1 parent 41e93e9 commit 867edd1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/parallel/test-fs-stat.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,14 @@ fs.stat(__filename, common.mustCall(function(err, s) {
154154
}
155155
);
156156
});
157+
158+
// Should not throw an error
159+
fs.stat(__filename, undefined, common.mustCall(() => {}));
160+
161+
fs.open(__filename, 'r', undefined, common.mustCall((err, fd) => {
162+
// Should not throw an error
163+
fs.fstat(fd, undefined, common.mustCall(() => {}));
164+
}));
165+
166+
// Should not throw an error
167+
fs.lstat(__filename, undefined, common.mustCall(() => {}));

0 commit comments

Comments
 (0)