Skip to content

fs.readSync & fs.read position argument does not support BigInt #36185

@mikeal

Description

@mikeal

What steps will reproduce the bug?

readSync(reader, buffer, 0, 12, BigInt(position))           

How often does it reproduce? Is there a required condition?

Everytime.

What is the expected behavior?

It should read from the position in the file, and it will if you use Number(position) on a BigInt position.

What do you see instead?

The call reads data into the buffer but it begins at position 0 in the file instead of at the position noted in the BigInt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions