File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const {
31
31
} = require ( 'internal/util' ) ;
32
32
33
33
const {
34
- isArrayBuffer ,
34
+ isAnyArrayBuffer ,
35
35
isArrayBufferView,
36
36
isUint8Array
37
37
} = require ( 'internal/util/types' ) ;
@@ -404,7 +404,7 @@ function makeTextDecoderICU() {
404
404
405
405
decode ( input = empty , options = { } ) {
406
406
validateDecoder ( this ) ;
407
- if ( isArrayBuffer ( input ) ) {
407
+ if ( isAnyArrayBuffer ( input ) ) {
408
408
input = lazyBuffer ( ) . from ( input ) ;
409
409
} else if ( ! isArrayBufferView ( input ) ) {
410
410
throw new ERR_INVALID_ARG_TYPE ( 'input' ,
@@ -469,7 +469,7 @@ function makeTextDecoderJS() {
469
469
470
470
decode ( input = empty , options = { } ) {
471
471
validateDecoder ( this ) ;
472
- if ( isArrayBuffer ( input ) ) {
472
+ if ( isAnyArrayBuffer ( input ) ) {
473
473
input = lazyBuffer ( ) . from ( input ) ;
474
474
} else if ( isArrayBufferView ( input ) ) {
475
475
input = lazyBuffer ( ) . from ( input . buffer , input . byteOffset ,
You can’t perform that action at this time.
0 commit comments