Commit 2fadc9e 1 parent 962c581 commit 2fadc9e Copy full SHA for 2fadc9e
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,10 @@ differently based on what arguments are provided:
68
68
* Passing an [ ` ArrayBuffer ` ] or a [ ` SharedArrayBuffer ` ] returns a ` Buffer ` that
69
69
shares allocated memory with the given array buffer.
70
70
71
- Because the behavior of ` new Buffer() ` changes significantly based on the type
72
- of value passed as the first argument, applications that do not properly
73
- validate the input arguments passed to ` new Buffer() ` , or that fail to
74
- appropriately initialize newly allocated ` Buffer ` content, can inadvertently
75
- introduce security and reliability issues into their code.
71
+ Because the behavior of ` new Buffer() ` is different depending on the type of the
72
+ first argument, security and reliability issues can be inadvertantly introduced
73
+ into applications when argument validation or ` Buffer ` initialization are not
74
+ performed.
76
75
77
76
To make the creation of ` Buffer ` instances more reliable and less error prone,
78
77
the various forms of the ` new Buffer() ` constructor have been ** deprecated**
You can’t perform that action at this time.
0 commit comments