-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Buffer.slice: Document behavior if end > slice.length #14714
Copy link
Copy link
Closed
Labels
bufferIssues 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.wipIssues and PRs that are still a work in progress.Issues and PRs that are still a work in progress.
Description
Activity
Metadata
Metadata
Assignees
Labels
bufferIssues 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.wipIssues and PRs that are still a work in progress.Issues and PRs that are still a work in progress.
The documentation for Buffer.slice says this about end:
It does not describe what happens if end is greater than the length of the buffer. Does Node return a buffer of length (end - start) with zero values for the extra values? Does it return a shorter buffer? Does it throw a RangeError?