diff options
author | Rich Trott <rtrott@gmail.com> | 2018-03-29 21:06:38 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-04-01 21:08:54 -0700 |
commit | 87972cd76fa6ce0dfbd604c3faee19c212ef608e (patch) | |
tree | 5de39a8297092b8335c1c0e5b192d77fee1d7d87 /lib | |
parent | 303354b4f7214388783037333dc82d64179b77cd (diff) | |
download | android-node-v8-87972cd76fa6ce0dfbd604c3faee19c212ef608e.tar.gz android-node-v8-87972cd76fa6ce0dfbd604c3faee19c212ef608e.tar.bz2 android-node-v8-87972cd76fa6ce0dfbd604c3faee19c212ef608e.zip |
buffer: remove "new" from deprecation message
This change removes "new" as a description for `Buffer` construction
methods. They are arguably not "new" anymore and they certainly won't be
"new" anymore at some point.
PR-URL: https://github.com/nodejs/node/pull/19687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index 09afc4d713..42862c02da 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -142,7 +142,7 @@ function alignPool() { var bufferWarn = true; const bufferWarning = 'The Buffer() and new Buffer() constructors are not ' + 'recommended for use due to security and usability ' + - 'concerns. Please use the new Buffer.alloc(), ' + + 'concerns. Please use the Buffer.alloc(), ' + 'Buffer.allocUnsafe(), or Buffer.from() construction ' + 'methods instead.'; |