Repository navigation
doc: Buffer.prototype.byteLength is undocumented聽#34946
Description
Activity
- addedbufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Aug 27, 2020 I believe that's because it's inherited from
TypedArray.Reacted by Anna HenningsenI would like to work on this issue and submit a pull request.
@silverwind Can I document property under buffer class
@mscdex isn't it coming from ArrayBuffer#byteLength?
@PoojaDurgad Let's first get clearance whether we document inherited properties or not. Once that is decided, I'd suggest adding it below the buf.buffer prototype method, possibly with just a link to MDN.
Reacted by Pooja D P@silverwind Not necessarily. If the
Buffer/Uint8Arrayis a subset of the backingArrayBuffer, then the subset length will be returned and not theArrayBufferlength.Reacted by Anna Henningsen- removedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Aug 27, 2020 Removing
Good first issuefor now as it's not as trivial as I thought it would be.Not really fan of documenting the
TypedArrayproperties as it would probably open the door to document everyTypedArraymethod.Would you mind if completed this quote from the Buffer doc tho?
All TypedArray methods are available on Buffers.
Reacted by silverwindI think we could write "All TypedArray properties are available on Buffers." to make it clear that not only methods are available, but also instance properties like this one.
- added a commit that references this issue
on Jan 20, 2026 - added a commit that references this issue
on Jan 22, 2026 - added a commit that references this issue
on Jan 27, 2026 - added 6 commits that reference this issue
on Feb 17, 2026
馃摋 API Reference Docs Problem
Location
Affected URL(s):
Description
Buffer instances have a undocumented
.byteLengthproperty. We should document it. Docs only exist for the static methodBuffer.byteLengthbut not forBuffer.prototype.byteLength.