@@ -199,7 +199,7 @@ Buffer.from = function from(value, encodingOrOffset, length) {
199
199
throw new errors . TypeError (
200
200
'ERR_INVALID_ARG_TYPE' ,
201
201
'first argument' ,
202
- [ 'string' , 'buffer ' , 'arrayBuffer ' , 'array ' , 'array -like object ' ] ,
202
+ [ 'string' , 'Buffer ' , 'ArrayBuffer ' , 'Array ' , 'Array -like Object ' ] ,
203
203
value
204
204
) ;
205
205
}
@@ -226,7 +226,7 @@ Buffer.from = function from(value, encodingOrOffset, length) {
226
226
throw new errors . TypeError (
227
227
'ERR_INVALID_ARG_TYPE' ,
228
228
'first argument' ,
229
- [ 'string' , 'buffer ' , 'arrayBuffer ' , 'array ' , 'array -like object ' ] ,
229
+ [ 'string' , 'Buffer ' , 'ArrayBuffer ' , 'Array ' , 'Array -like Object ' ] ,
230
230
value
231
231
) ;
232
232
} ;
@@ -429,7 +429,7 @@ Buffer.isBuffer = function isBuffer(b) {
429
429
Buffer . compare = function compare ( a , b ) {
430
430
if ( ! isUint8Array ( a ) || ! isUint8Array ( b ) ) {
431
431
throw new errors . TypeError (
432
- 'ERR_INVALID_ARG_TYPE' , [ 'buf1' , 'buf2' ] , [ 'buffer ' , 'uint8Array ' ]
432
+ 'ERR_INVALID_ARG_TYPE' , [ 'buf1' , 'buf2' ] , [ 'Buffer ' , 'Uint8Array ' ]
433
433
) ;
434
434
}
435
435
@@ -448,7 +448,7 @@ Buffer.isEncoding = function isEncoding(encoding) {
448
448
Buffer [ kIsEncodingSymbol ] = Buffer . isEncoding ;
449
449
450
450
const kConcatErr = new errors . TypeError (
451
- 'ERR_INVALID_ARG_TYPE' , 'list' , [ 'array ' , 'buffer ' , 'uint8Array ' ]
451
+ 'ERR_INVALID_ARG_TYPE' , 'list' , [ 'Array ' , 'Buffer ' , 'Uint8Array ' ]
452
452
) ;
453
453
454
454
Buffer . concat = function concat ( list , length ) {
@@ -509,7 +509,7 @@ function byteLength(string, encoding) {
509
509
510
510
throw new errors . TypeError (
511
511
'ERR_INVALID_ARG_TYPE' , 'string' ,
512
- [ 'string' , 'buffer ' , 'arrayBuffer ' ] , string
512
+ [ 'string' , 'Buffer ' , 'ArrayBuffer ' ] , string
513
513
) ;
514
514
}
515
515
@@ -671,7 +671,7 @@ Buffer.prototype.equals = function equals(b) {
671
671
if ( ! isUint8Array ( b ) ) {
672
672
throw new errors . TypeError (
673
673
'ERR_INVALID_ARG_TYPE' , 'otherBuffer' ,
674
- [ 'buffer ' , 'uint8Array ' ] , b
674
+ [ 'Buffer ' , 'Uint8Array ' ] , b
675
675
) ;
676
676
}
677
677
if ( this === b )
@@ -700,7 +700,7 @@ Buffer.prototype.compare = function compare(target,
700
700
if ( ! isUint8Array ( target ) ) {
701
701
throw new errors . TypeError (
702
702
'ERR_INVALID_ARG_TYPE' , 'target' ,
703
- [ 'buffer ' , 'uint8Array ' ] , target
703
+ [ 'Buffer ' , 'Uint8Array ' ] , target
704
704
) ;
705
705
}
706
706
if ( arguments . length === 1 )
@@ -783,7 +783,7 @@ function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
783
783
784
784
throw new errors . TypeError (
785
785
'ERR_INVALID_ARG_TYPE' , 'value' ,
786
- [ 'string' , 'buffer ' , 'uint8Array ' ] , val
786
+ [ 'string' , 'Buffer ' , 'Uint8Array ' ] , val
787
787
) ;
788
788
}
789
789
0 commit comments