File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,9 @@ function alignPool() {
140140}
141141
142142var 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.' ;
148146
149147function showFlaggedDeprecation ( ) {
150148 if ( bufferWarn ) {
Original file line number Diff line number Diff line change 33
44const common = require ( '../common' ) ;
55
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.' ;
119
1210common . expectWarning ( 'DeprecationWarning' , bufferWarning , 'DEP0005' ) ;
1311
You can’t perform that action at this time.
0 commit comments