diff --git a/lib/buffer.js b/lib/buffer.js index 09afc4d713bd9b..42862c02da98d8 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.'; diff --git a/test/parallel/test-buffer-pending-deprecation.js b/test/parallel/test-buffer-pending-deprecation.js index 15b5a5140e184a..ba9f1b7bd7b592 100644 --- a/test/parallel/test-buffer-pending-deprecation.js +++ b/test/parallel/test-buffer-pending-deprecation.js @@ -5,7 +5,7 @@ const common = require('../common'); 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.';