mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: runtime deprecate SlowBuffer
PR-URL: https://github.com/nodejs/node/pull/55175 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
2545b9e02c
commit
019efe1453
3 changed files with 16 additions and 3 deletions
|
@ -88,6 +88,7 @@ const {
|
|||
kIsEncodingSymbol,
|
||||
defineLazyProperties,
|
||||
encodingsMap,
|
||||
deprecate,
|
||||
} = require('internal/util');
|
||||
const {
|
||||
isAnyArrayBuffer,
|
||||
|
@ -1322,7 +1323,10 @@ function isAscii(input) {
|
|||
|
||||
module.exports = {
|
||||
Buffer,
|
||||
SlowBuffer,
|
||||
SlowBuffer: deprecate(
|
||||
SlowBuffer,
|
||||
'SlowBuffer() is deprecated. Please use Buffer.allocUnsafeSlow()',
|
||||
'DEP0030'),
|
||||
transcode,
|
||||
isUtf8,
|
||||
isAscii,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue