microsoft / vscode-debugadapter-node

Debug adapter protocol and implementation for VS Code.
Other
273 stars 79 forks source link

Change new Buffer(0) to Buffer.alloc(0) to prevent deprecation warning #244

Closed DanTup closed 3 years ago

DanTup commented 3 years ago

The old Buffer(x) API is deprecated and produces a warning. The equivalent new API is Buffer.alloc (strictly for non-zero lengths Buffer.allocUnsafe is the same, but probably not what most people should use).

https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/#variant-1

Fixes #217.

connor4312 commented 3 years ago

It's spooky merging pull requests during Github degradations. I merged this in a6e889c18abad6ca8b0a517ececb631add4b39f8