Skip to content

Conversation

@ChALkeR
Copy link
Contributor

@ChALkeR ChALkeR commented Mar 3, 2018

Buffer.concat([]) returns an empty buffer all the way down to 0.8.x.

Alternative way would be to just use Buffer.alloc(0) and drop support for outdated Node.js versions (< 4.5.0 || >= 5.0.0 < 5.10.0).

Refs:
https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor

Tracking: nodejs/node#19079

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.

2 participants