Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Stop using deprecated Buffer constructor#10

Merged
tj merged 1 commit intotj:masterfrom
Qard:buffer-fix
Jan 3, 2019
Merged

Stop using deprecated Buffer constructor#10
tj merged 1 commit intotj:masterfrom
Qard:buffer-fix

Conversation

@Qard
Copy link
Collaborator

@Qard Qard commented Jan 2, 2019

The new Buffer(string|number) form was deemed an attack vector
and deprecated. All Node.js v6.x+ versions have the .from(),
.alloc() and .allocUnsafe() family of Buffer methods now.

The `new Buffer(string|number)` form was deemed an attack vector
and deprecated. All Node.js v6.x+ versions have the `.from()`,
`.alloc()` and `.allocUnsafe()` family of Buffer methods now.
@Qard Qard added the bug label Jan 2, 2019
@Qard Qard self-assigned this Jan 2, 2019
@Qard Qard requested a review from tj January 2, 2019 22:16
@tj tj merged commit b5ba59d into tj:master Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants