buffer: implement new fill behavior
authorTrevor Norris <trev.norris@gmail.com>
Fri, 24 May 2013 17:58:30 +0000 (10:58 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Tue, 18 Jun 2013 22:41:03 +0000 (15:41 -0700)
commit4b403588416e7928fbda31043d5e7aa56b5d87b0
treeb837e7e7bd0c5176080477d809465e8844234c6f
parentf4896491590032a42b892c59afd970f9ee031ab7
buffer: implement new fill behavior

Old fill would take the char code of the first character and wrap around
the int to fit in the 127 range. Now fill will duplicate whatever string
is given through the entirety of the buffer.

Note: There is one bug around ending on a partial fill of any character
outside the ASCII range.
src/node_buffer.cc
test/simple/test-buffer.js