Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Comments

fix warning [DeprecationWarning: The Buffer() and new Buffer()]#8

Open
snickerjp wants to merge 1 commit intoamazon-archives:masterfrom
snickerjp:Porting_Buffer
Open

fix warning [DeprecationWarning: The Buffer() and new Buffer()]#8
snickerjp wants to merge 1 commit intoamazon-archives:masterfrom
snickerjp:Porting_Buffer

Conversation

@snickerjp
Copy link

Description of changes:

warning detected.

  • Node.js > 8
DeprecationWarning: The Buffer() and new Buffer() constructors are not recommended for use due to security and usability concerns. Please use the new Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() construction methods instead.

ref. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

fix this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant