mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
fs: remove unused option in fs.fstatSync()
PR-URL: https://github.com/nodejs/node/pull/44613 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com>
This commit is contained in:
1 parent
90eaae3ef1
commit
bbbb4460ee
1 file changed
+1
-2
@@ -1529,11 +1529,10 @@ function hasNoEntryError(ctx) {
|
||||
* @param {number} fd
|
||||
* @param {{
|
||||
* bigint?: boolean;
|
||||
* throwIfNoEntry?: boolean;
|
||||
* }} [options]
|
||||
* @returns {Stats}
|
||||
*/
|
||||
function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) {
|
||||
function fstatSync(fd, options = { bigint: false }) {
|
||||
fd = getValidatedFd(fd);
|
||||
const ctx = { fd };
|
||||
const stats = binding.fstat(fd, options.bigint, undefined, ctx);
|
||||
|
||||
Reference in new issue
Block a user