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.slice: Document behavior if end > slice.length #14714
end Where the new Buffer will end (not inclusive). Default: buf.length
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?
Activity
cjihrig commentedon Aug 9, 2017
Care to submit a documentation PR?
Buffer.slice: Added description for the case when end is greater than…
kevinburke commentedon Aug 10, 2017
cjihrig commentedon Aug 10, 2017
Looks like it's been taken care of: #14720
doc: expanded description of buffer.slice
kevinburke commentedon Aug 12, 2017