Skip to content

fs: make read parameters optional #31237

Description

@ronag

At least in the promisifed version the parameters after fd should be optional, i.e:

function read(fd, buffer = new Buffer(16384), offset = 0, length = buffer.length, position = null);

The non promisified is a bitter more tricky but should be doable as well.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions