You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buffer.byteLength's implementation is not consistent with the documentation #38536
Activity
Trott commentedon May 5, 2021
@nodejs/buffer @nodejs/documentation
mscdex commentedon May 5, 2021
I believe it was part of a now outdated optimization. I think it can be removed from the code (the parts where
mustMatchwould've beentrue).buffer: remove mustMatch from Buffer.bytelength()
buffer: refactor `byteLength` to remove outdated optimizations
buffer: refactor `byteLength` to remove outdated optimizations
buffer: refactor `byteLength` to remove outdated optimizations