-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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.byteLength
's implementation is not consistent with the documentation
#38536
Labels
buffer
Issues and PRs related to the buffer subsystem.
Comments
@nodejs/buffer @nodejs/documentation |
I believe it was part of a now outdated optimization. I think it can be removed from the code (the parts where |
pd4d10
added a commit
to pd4d10/node
that referenced
this issue
May 5, 2021
The third argument `mustMatch` is now outdated, so remove it. Fixes: nodejs#38536
Trott
added a commit
to Trott/io.js
that referenced
this issue
Mar 26, 2022
Buffer.bytelength() has an undocumented third parameterm `mustMatch`. Remove it. Closes: nodejs#38536
Trott
pushed a commit
to pd4d10/node
that referenced
this issue
Mar 29, 2022
The third argument `mustMatch` is now outdated, so remove it. Fixes: nodejs#38536
xtx1130
pushed a commit
to xtx1130/node
that referenced
this issue
Apr 25, 2022
The third argument `mustMatch` is now outdated, so remove it. Fixes: nodejs#38536 PR-URL: nodejs#38545 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node/lib/buffer.js
Lines 729 to 752 in f71166b
In line 741 it checks the third argument
mustMatch
, which is not mentioned in the documentSo I guess either the implementation or the documentation should be updated.
The text was updated successfully, but these errors were encountered: