Skip to content

buffer: fix range checking for slowToString#2919

Closed
thefourtheye wants to merge 1 commit intonodejs:masterfrom
thefourtheye:buffer-slow-to-string-range-fix
Closed

buffer: fix range checking for slowToString#2919
thefourtheye wants to merge 1 commit intonodejs:masterfrom
thefourtheye:buffer-slow-to-string-range-fix

Conversation

@thefourtheye
Copy link
Contributor

Following the discussion #2668,
this patch fixes the first problem discussed there. If start is not
a valid number in the range, then the default value zero will be used.
Same way, if end is not a valid number in the accepted range, then,
by default, the length of the buffer is assumed.

cc @trevnorris @ChALkeR

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buffer Issues and PRs related to the buffer subsystem. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants