Skip to content

buffer: confusing error message #25673

Closed
Closed
@vsemozhetbyt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions