Skip to content

buffer: confusing error message #25673

Closed
Closed

Description

@vsemozhetbyt
  • Version: 10.15.0 and 11.7.0 (06.16.0 and 08.15.0 are OK)
  • Platform: Windows 7 x64
  • Subsystem: buffer

Running this doc example:

const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
console.log(buf.readDoubleLE(1));
RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 1

Activity

  1. added
    bufferIssues and PRs related to the buffer subsystem.
    errorsIssues and PRs related to JavaScript errors originating in Node.js core.
    on Jan 23, 2019
  2. vsemozhetbyt commented on Jan 23, 2019

    @vsemozhetbyt
    ContributorAuthor

    Sorry, it is not so confused as it seems at first glance(

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

    bufferIssues and PRs related to the buffer subsystem.errorsIssues and PRs related to JavaScript errors originating in Node.js core.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions