| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6df2704 commit 465a1cf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -899,15 +899,15 @@ function stat(path, options = { bigint: false }, callback) { | |||
| 899 | 899 | binding.stat(pathModule.toNamespacedPath(path), options.bigint, req); | |
| 900 | 900 | } | |
| 901 | 901 | ||
| 902 | - function fstatSync(fd, options = {}) { | ||
| 902 | + function fstatSync(fd, options = { bigint: false }) { | ||
| 903 | 903 | validateInt32(fd, 'fd', 0); | |
| 904 | 904 | const ctx = { fd }; | |
| 905 | 905 | const stats = binding.fstat(fd, options.bigint, undefined, ctx); | |
| 906 | 906 | handleErrorFromBinding(ctx); | |
| 907 | 907 | return getStatsFromBinding(stats); | |
| 908 | 908 | } | |
| 909 | 909 | ||
| 910 | - function lstatSync(path, options = {}) { | ||
| 910 | + function lstatSync(path, options = { bigint: false }) { | ||
| 911 | 911 | path = getValidatedPath(path); | |
| 912 | 912 | const ctx = { path }; | |
| 913 | 913 | const stats = binding.lstat(pathModule.toNamespacedPath(path), | |
@@ -916,7 +916,7 @@ function lstatSync(path, options = {}) { | |||
| 916 | 916 | return getStatsFromBinding(stats); | |
| 917 | 917 | } | |
| 918 | 918 | ||
| 919 | - function statSync(path, options = {}) { | ||
| 919 | + function statSync(path, options = { bigint: false }) { | ||
| 920 | 920 | path = getValidatedPath(path); | |
| 921 | 921 | const ctx = { path }; | |
| 922 | 922 | const stats = binding.stat(pathModule.toNamespacedPath(path), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments