summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorLivia Medeiros <livia@cirno.name>2022-09-15 02:16:01 +0900
committerGitHub <noreply@github.com>2022-09-14 17:16:01 +0000
commitac8ab0ca0b4c7a9bc65c761273afe12d1e6f873e (patch)
treeb2747861b338b1d65bbdeec5b2de81cc9f593744 /lib/fs.js
parentb809792931ec89c67eabd3efb082847171c3e690 (diff)
downloadnode-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.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fs.js b/lib/fs.js
index bbf08f85b1..4862b8cd69 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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);