File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,9 @@ Type: End-of-Life
695
695
696
696
<!-- YAML
697
697
changes:
698
+ - version: REPLACEME
699
+ pr-url: https://github.com/nodejs/node/pull/55175
700
+ description: Runtime deprecation.
698
701
- version: v6.12.0
699
702
pr-url: https://github.com/nodejs/node/pull/10116
700
703
description: A deprecation code has been assigned.
@@ -703,7 +706,7 @@ changes:
703
706
description: Documentation-only deprecation.
704
707
-->
705
708
706
- Type: Documentation-only
709
+ Type: Runtime
707
710
708
711
The [ ` SlowBuffer ` ] [ ] class is deprecated. Please use
709
712
[ ` Buffer.allocUnsafeSlow(size) ` ] [ ] instead.
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ const {
88
88
kIsEncodingSymbol,
89
89
defineLazyProperties,
90
90
encodingsMap,
91
+ deprecate,
91
92
} = require ( 'internal/util' ) ;
92
93
const {
93
94
isAnyArrayBuffer,
@@ -1322,7 +1323,10 @@ function isAscii(input) {
1322
1323
1323
1324
module . exports = {
1324
1325
Buffer,
1325
- SlowBuffer,
1326
+ SlowBuffer : deprecate (
1327
+ SlowBuffer ,
1328
+ 'SlowBuffer() is deprecated. Please use Buffer.allowUnsafeSlow()' ,
1329
+ 'DEP0030' ) ,
1326
1330
transcode,
1327
1331
isUtf8,
1328
1332
isAscii,
You can’t perform that action at this time.
0 commit comments