-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
writeUInt16BE: incorrect 'value of "value" is out of range.' error message? #24205
Comments
addaleax
added
buffer
Issues and PRs related to the buffer subsystem.
errors
Issues and PRs related to JavaScript errors originated in Node.js core.
labels
Nov 6, 2018
@nodejs/buffer |
mscdex
added a commit
to mscdex/io.js
that referenced
this issue
Nov 6, 2018
BridgeAR
pushed a commit
that referenced
this issue
Nov 14, 2018
Fixes: #24205 PR-URL: #24208 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
kiyomizumia
pushed a commit
to kiyomizumia/node
that referenced
this issue
Nov 15, 2018
Fixes: nodejs#24205 PR-URL: nodejs#24208 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
codebytere
pushed a commit
that referenced
this issue
Dec 13, 2018
Fixes: #24205 PR-URL: #24208 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
MylesBorins
pushed a commit
that referenced
this issue
Dec 26, 2018
Fixes: #24205 PR-URL: #24208 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v10.13.0
Linux Mint 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
From its name and its behavior, I'm think
writeUInt16BE
can only take up to 2 bytes (0xFFFF, 65535), but it accepts up to 4, although it ignores anything after 2.In the REPL:
The error message matches the behavior, although I'm confused by it. I can't find mention of this in the docs.
writeUInt16LE
behaves and reports differently:The text was updated successfully, but these errors were encountered: