mirror of https://github.com/lukechilds/node.git
Browse Source
Previously, the implementation of Buffer.alloc() called Buffer#fill() with another Buffer as an argument. However, in v4.x, Buffer#fill does not support a Buffer as a parameter. As a workaround, call binding.fill() directly in the Buffer.alloc() implementation. Fixes: https://github.com/nodejs/node/issues/9226 PR-URL: https://github.com/nodejs/node/pull/9238 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>v4.x
committed by
Myles Borins
2 changed files with 26 additions and 5 deletions
Loading…
Reference in new issue