node
node copied to clipboard
`BigIntStats` not actually exported from `fs`.
Version
v21.4.0
Platform
Darwin chug.lan 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov 7 21:42:27 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T8103 arm64
Subsystem
fs
What steps will reproduce the bug?
Shell command: node -e 'console.log(fs.BigIntStats)'
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior? Why is that the expected behavior?
I would expect this to output the usual representation of a class / constructor named BigIntStats
, which is a class named in the documentation for the fs
module, e.g. at https://nodejs.org/docs/latest/api/fs.html#class-fsstats under "bigint
version."
(What I actually want to do is stuff like if (stats instanceof fs.BigIntStats) ...
.)
What do you see instead?
$ node -e 'console.log(fs.BigIntStats)'
undefined
$
Additional information
Compare to:
$ node -e 'console.log(fs.Stats)'
[Function: Stats]
$