File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ console in recent versions of Node.js. This often confuses users and leads to
23
23
unnecessary support tickets for project maintainers.
24
24
25
25
Some deprecated APIs are even insecure (or at least prone to incorrect usage) which
26
- can have serious security implications. For that reason, ` standard ` now prevents
27
- usage of ` Buffer(num) ` or ` new Buffer(num) ` since these functions return
28
- uninitialized program memory which could contain private user information or
29
- confidential secret keys.
26
+ can have serious security implications. For that reason, ` standard ` now considers
27
+ usage of ` Buffer(num) ` to be an error, since this function returns uninitialized
28
+ program memory which could contain confidential information like passwords or keys.
30
29
31
30
Instead of ` Buffer(num) ` , consider using ` Buffer.alloc(num) ` or ` Buffer.from(obj) `
32
- which make the programmer intention much clearer. These new functions exist in all
33
- currently supported versions of Node.js, including Node.js 4.x. For more
34
- background, [ see this Node.js issue] ( https://github.com/nodejs/node/issues/4660 ) .
31
+ which make the programmer's intent clearer. These functions exist in all currently
32
+ supported versions of Node.js, including Node.js 4.x. For more background,
33
+ [ see this Node.js issue] ( https://github.com/nodejs/node/issues/4660 ) .
35
34
36
35
We also improved some rules to support common patterns in code bases that use
37
36
React, JSX, and Flow.
You can’t perform that action at this time.
0 commit comments