diff --git a/lib/buffer.js b/lib/buffer.js index d66d5650f30e73..fb0697d69adf79 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -1284,7 +1284,7 @@ function isUtf8(input) { return bindingIsUtf8(input); } - throw new ERR_INVALID_ARG_TYPE('input', ['TypedArray', 'Buffer'], input); + throw new ERR_INVALID_ARG_TYPE('input', ['ArrayBuffer', 'Buffer', 'TypedArray'], input); } function isAscii(input) {