buffer: add missing ARG_TYPE(ArrayBuffer) for isUtf8

PR-URL: https://github.com/nodejs/node/pull/52477
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Jungku Lee 2024-04-14 01:04:48 +09:00 committed by GitHub
parent 801edffbf8
commit 3634f9c8fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {