Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer: confusing error message #25673

Closed
vsemozhetbyt opened this issue Jan 23, 2019 · 1 comment
Closed

buffer: confusing error message #25673

vsemozhetbyt opened this issue Jan 23, 2019 · 1 comment
Labels
buffer Issues and PRs related to the buffer subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core.

Comments

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Jan 23, 2019

  • 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
@vsemozhetbyt vsemozhetbyt added buffer Issues and PRs related to the buffer subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Jan 23, 2019
@vsemozhetbyt
Copy link
Contributor Author

vsemozhetbyt commented Jan 23, 2019

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
Labels
buffer Issues and PRs related to the buffer subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core.
Projects
None yet
Development

No branches or pull requests

1 participant