diff options
author | Livia Medeiros <livia@cirno.name> | 2022-09-15 02:16:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 17:16:01 +0000 |
commit | ac8ab0ca0b4c7a9bc65c761273afe12d1e6f873e (patch) | |
tree | b2747861b338b1d65bbdeec5b2de81cc9f593744 /lib/fs.js | |
parent | b809792931ec89c67eabd3efb082847171c3e690 (diff) | |
download | node-new-ac8ab0ca0b4c7a9bc65c761273afe12d1e6f873e.tar.gz |
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>
Diffstat (limited to 'lib/fs.js')
-rw-r--r-- | lib/fs.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1531,11 +1531,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); |