Skip to content

BigIntStats not actually exported from fs. #51674

Description

@danfuzz

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]
$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions