Skip to content

Conversation

@LinusU
Copy link
Contributor

@LinusU LinusU commented Nov 26, 2014

This patch fixes #659.

All the current tests still passes and I've added some new ones as well.

@LinusU
Copy link
Contributor Author

LinusU commented Nov 26, 2014

The build fails because node v0.10 dosen't support filling with a longer string than one character (see #659).

How do you guys want to handle this? I think that using the whole string is just an extra feature and won't break any code already in place. This will also be the stable behaviour as soon as 0.12 is out the door so I think that we should implement it right away....

@johnnyman727
Copy link
Contributor

@LinusU, I'd prefer if we could try to stick as closely to the released Node version as possible. Could you break this up into two PRs: one with fill for a single character and the other for an entire string? We'll merge the compatible one immediately and rebase/merge the latter when 0.12 is released.

@LinusU
Copy link
Contributor Author

LinusU commented Dec 1, 2014

Closing in favour of #671 and #672.

@LinusU LinusU closed this Dec 1, 2014
tm-rampart added a commit that referenced this pull request Dec 2, 2014
Related to #666

This is the Node.js version `0.10.x` implementation of `Buffer.fill`. 

@johnnyman727 we can merge this for now and then when Node.js `0.12.x` is released we'll merge the next one that I'll submit in 5 minutes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buffer#fill with string instead of number

2 participants