diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-09-29 17:29:59 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-09-29 17:36:03 -0700 |
commit | 57ed3daebfe4700b14cd551f50240f1a634dbd64 (patch) | |
tree | 836708b9e199bd01107710117a2d56745ca2c741 /lib/_http_incoming.js | |
parent | f2a78de6ec134f4050531ba6a52dee47e0aee165 (diff) | |
download | android-node-v8-57ed3daebfe4700b14cd551f50240f1a634dbd64.tar.gz android-node-v8-57ed3daebfe4700b14cd551f50240f1a634dbd64.tar.bz2 android-node-v8-57ed3daebfe4700b14cd551f50240f1a634dbd64.zip |
buffer: fix and cleanup fill()
Running fill() with an empty string would cause Node to hang
indefinitely. Now it will return without having operated on the buffer.
User facing function has been pulled into JS to perform all initial
value checks and coercions. The C++ method has been placed on the
"internal" object.
Coerced non-string values to numbers to match v0.10 support.
Simplified logic and changed a couple variable names.
Added tests for fill() and moved them all to the beginning of
buffer-test.js since many other tests depend on fill() working properly.
Fixes: https://github.com/joyent/node/issues/8469
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'lib/_http_incoming.js')
0 files changed, 0 insertions, 0 deletions