File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,9 @@ function alignPool() {
140
140
}
141
141
142
142
var bufferWarn = true ;
143
- const bufferWarning = 'The Buffer() and new Buffer() constructors are not ' +
144
- 'recommended for use due to security and usability ' +
145
- 'concerns. Please use the Buffer.alloc(), ' +
146
- 'Buffer.allocUnsafe(), or Buffer.from() construction ' +
147
- 'methods instead.' ;
143
+ const bufferWarning = 'Buffer() is deprecated due to security and usability ' +
144
+ 'issues. Please use the Buffer.alloc(), ' +
145
+ 'Buffer.allocUnsafe(), or Buffer.from() methods instead.' ;
148
146
149
147
function showFlaggedDeprecation ( ) {
150
148
if ( bufferWarn ) {
Original file line number Diff line number Diff line change 3
3
4
4
const common = require ( '../common' ) ;
5
5
6
- const bufferWarning = 'The Buffer() and new Buffer() constructors are not ' +
7
- 'recommended for use due to security and usability ' +
8
- 'concerns. Please use the Buffer.alloc(), ' +
9
- 'Buffer.allocUnsafe(), or Buffer.from() construction ' +
10
- 'methods instead.' ;
6
+ const bufferWarning = 'Buffer() is deprecated due to security and usability ' +
7
+ 'issues. Please use the Buffer.alloc(), ' +
8
+ 'Buffer.allocUnsafe(), or Buffer.from() methods instead.' ;
11
9
12
10
common . expectWarning ( 'DeprecationWarning' , bufferWarning , 'DEP0005' ) ;
13
11
You can’t perform that action at this time.
0 commit comments