buffer: replace SlowBuffer with Buffer.allocUnsafeSlow(size)
Pull Request check-list
-
Does make -j8 test
(UNIX) orvcbuild test nosign
(Windows) pass with this change (including linting)? -
Is the commit message formatted according to [CONTRIBUTING.md][0]? -
If this change fixes a bug (or a performance problem), is a regression test (or a benchmark) included? -
Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
Affected core subsystem(s)
buffer
Description of change
- Adds
Buffer.allocUnsafeSlow()
as a replacement forSlowBuffer
- Soft-deprecate
SlowBuffer
Essentially, this aligns the functionality of SlowBuffer
with the new constructor API
Refs: https://github.com/nodejs/node/issues/5799
/cc @ChALkeR @trevnorris