unclechu / node-deep-extend

Recursive extend module
MIT License
202 stars 53 forks source link

Avoid using deprecated Buffer API #38

Closed ChALkeR closed 6 years ago

ChALkeR commented 6 years ago

Use Buffer.alloc when it's available instead of new Bufer(number).

Fixes: https://github.com/unclechu/node-deep-extend/issues/37 Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor Tracking: https://github.com/nodejs/node/issues/19079